Fix ir_print.cpp i32 line/column values

This commit is contained in:
gingerBill
2021-03-05 15:42:59 +00:00
parent 1988856eed
commit 0ae1b96182
+7 -7
View File
@@ -2885,8 +2885,8 @@ void print_llvm_ir(irGen *ir) {
", linkageName: \"%.*s\"" ", linkageName: \"%.*s\""
", scope: !%d" ", scope: !%d"
", file: !%d" ", file: !%d"
", line: %td" ", line: %d"
", scopeLine: %td" ", scopeLine: %d"
", isDefinition: true" ", isDefinition: true"
", isLocal: false" // TODO(lachsinc): Is this fine? ", isLocal: false" // TODO(lachsinc): Is this fine?
", flags: DIFlagPrototyped" ", flags: DIFlagPrototyped"
@@ -2910,8 +2910,8 @@ void print_llvm_ir(irGen *ir) {
case irDebugInfo_Location: case irDebugInfo_Location:
GB_ASSERT_NOT_NULL(di->Location.scope); GB_ASSERT_NOT_NULL(di->Location.scope);
ir_fprintf(f, "!DILocation(" ir_fprintf(f, "!DILocation("
"line: %td" "line: %d"
", column: %td" ", column: %d"
", scope: !%d)", ", scope: !%d)",
di->Location.pos.line, di->Location.pos.line,
di->Location.pos.column, 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.file);
GB_ASSERT_NOT_NULL(di->LexicalBlock.scope); GB_ASSERT_NOT_NULL(di->LexicalBlock.scope);
ir_fprintf(f, "distinct !DILexicalBlock(" ir_fprintf(f, "distinct !DILexicalBlock("
"line: %td" "line: %d"
", column: %td" ", column: %d"
", file: !%d" ", file: !%d"
", scope: !%d)", ", scope: !%d)",
di->LexicalBlock.pos.line, di->LexicalBlock.pos.line,
@@ -3039,7 +3039,7 @@ void print_llvm_ir(irGen *ir) {
} }
if (di->CompositeType.file != nullptr) { if (di->CompositeType.file != nullptr) {
ir_fprintf(f, ", file: !%d" ir_fprintf(f, ", file: !%d"
", line: %td", ", line: %d",
di->CompositeType.file->id, di->CompositeType.file->id,
di->CompositeType.pos.line); di->CompositeType.pos.line);
} }