diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-02-05 12:50:19 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-02-05 12:50:19 -0500 |
| commit | 6f316d8ebd1d7e594b957bac16a5458b5d173481 (patch) | |
| tree | 3aa2abd7789deea716e700ffeeff395d624d35e9 /src/ir_print.cpp | |
| parent | d2f1f57fa410b781f17ab7b04311af50ff775070 (diff) | |
| download | zig-6f316d8ebd1d7e594b957bac16a5458b5d173481.tar.gz zig-6f316d8ebd1d7e594b957bac16a5458b5d173481.zip | |
setGlobalSection and setGlobalAlign work for functions
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index f7abbc9ae0..a378df04b5 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -833,13 +833,13 @@ static void ir_print_can_implicit_cast(IrPrint *irp, IrInstructionCanImplicitCas } static void ir_print_set_global_align(IrPrint *irp, IrInstructionSetGlobalAlign *instruction) { - fprintf(irp->f, "@setGlobalAlign(%s,", buf_ptr(instruction->tld_var->base.name)); + fprintf(irp->f, "@setGlobalAlign(%s,", buf_ptr(instruction->tld->name)); ir_print_other_instruction(irp, instruction->value); fprintf(irp->f, ")"); } static void ir_print_set_global_section(IrPrint *irp, IrInstructionSetGlobalSection *instruction) { - fprintf(irp->f, "@setGlobalSection(%s,", buf_ptr(instruction->tld_var->base.name)); + fprintf(irp->f, "@setGlobalSection(%s,", buf_ptr(instruction->tld->name)); ir_print_other_instruction(irp, instruction->value); fprintf(irp->f, ")"); } |
