Tuple debug info (untested). Generated locals now flow through debug info.

This commit is contained in:
lachsinc
2018-10-05 14:33:39 +10:00
parent 99b4d59f44
commit 11ea03d2e8
2 changed files with 64 additions and 25 deletions
+4 -3
View File
@@ -2044,16 +2044,17 @@ void print_llvm_ir(irGen *ir) {
}
case irDebugInfo_LocalVariable: {
ir_fprintf(f, "!DILocalVariable("
"name: \"%.*s\""
", scope: !%d"
"scope: !%d"
", file: !%d"
", line: %d"
", type: !%d",
LIT(di->LocalVariable.name),
di->LocalVariable.scope->id,
di->LocalVariable.file->id,
di->LocalVariable.pos.line,
di->LocalVariable.type->id);
if (di->DerivedType.name.len > 0) {
ir_fprintf(f, ", name: \"%.*s\"", LIT(di->LocalVariable.name));
}
if (di->LocalVariable.arg > 0) {
ir_fprintf(f, ", arg: %d", di->LocalVariable.arg);
}