diff options
| author | gingerBill <bill@gingerbill.org> | 2021-03-05 15:42:59 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-03-05 15:42:59 +0000 |
| commit | 0ae1b96182fac75265e80c91a750367dc8ef5911 (patch) | |
| tree | 415dacbcfd039ff45119c224ef421c9317dcaae9 /src/ir_print.cpp | |
| parent | 1988856eedc1a9714c42a22ea369d8154dcf7589 (diff) | |
Fix ir_print.cpp i32 line/column values
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index c87030e84..e7af016d5 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -2885,8 +2885,8 @@ void print_llvm_ir(irGen *ir) { ", linkageName: \"%.*s\"" ", scope: !%d" ", file: !%d" - ", line: %td" - ", scopeLine: %td" + ", line: %d" + ", scopeLine: %d" ", isDefinition: true" ", isLocal: false" // TODO(lachsinc): Is this fine? ", flags: DIFlagPrototyped" @@ -2910,8 +2910,8 @@ void print_llvm_ir(irGen *ir) { case irDebugInfo_Location: GB_ASSERT_NOT_NULL(di->Location.scope); ir_fprintf(f, "!DILocation(" - "line: %td" - ", column: %td" + "line: %d" + ", column: %d" ", scope: !%d)", di->Location.pos.line, di->Location.pos.column, @@ -2921,8 +2921,8 @@ void print_llvm_ir(irGen *ir) { GB_ASSERT_NOT_NULL(di->LexicalBlock.file); GB_ASSERT_NOT_NULL(di->LexicalBlock.scope); ir_fprintf(f, "distinct !DILexicalBlock(" - "line: %td" - ", column: %td" + "line: %d" + ", column: %d" ", file: !%d" ", scope: !%d)", di->LexicalBlock.pos.line, @@ -3039,7 +3039,7 @@ void print_llvm_ir(irGen *ir) { } if (di->CompositeType.file != nullptr) { ir_fprintf(f, ", file: !%d" - ", line: %td", + ", line: %d", di->CompositeType.file->id, di->CompositeType.pos.line); } |