diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-02-04 10:22:07 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-02-04 10:22:07 -0500 |
| commit | 0919ea0afd11a5f88146f84e8120cdd03b128b81 (patch) | |
| tree | ae7ea0e9768b148e369c825b6a2302b673d997aa /src/ir_print.cpp | |
| parent | 67b02326f88805df8bbda5e93d1cf46e40c48862 (diff) | |
| download | zig-0919ea0afd11a5f88146f84e8120cdd03b128b81.tar.gz zig-0919ea0afd11a5f88146f84e8120cdd03b128b81.zip | |
ability to set global variable alignment and ...
..section in the initialization expression
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 a5ca1f1197..b9f33152dd 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -835,13 +835,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->var->name)); + fprintf(irp->f, "@setGlobalAlign(%s,", buf_ptr(instruction->tld_var->base.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->var->name)); + fprintf(irp->f, "@setGlobalSection(%s,", buf_ptr(instruction->tld_var->base.name)); ir_print_other_instruction(irp, instruction->value); fprintf(irp->f, ")"); } |
