aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-02-04 10:22:07 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-02-04 10:22:07 -0500
commit0919ea0afd11a5f88146f84e8120cdd03b128b81 (patch)
treeae7ea0e9768b148e369c825b6a2302b673d997aa /src/ir_print.cpp
parent67b02326f88805df8bbda5e93d1cf46e40c48862 (diff)
downloadzig-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.cpp4
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, ")");
}