summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-05-07 17:57:13 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-05-07 17:57:13 +0000
commit6baa776173902eb3a1f4ffbc8f8cdfd06f7fe81a (patch)
treebcc8d63e498394495d1c5274ae3355d14af4f44e /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentc363245ff2c98a07d473a5d73d54beb6be1bd6ae (diff)
downloadbcm5719-llvm-6baa776173902eb3a1f4ffbc8f8cdfd06f7fe81a.tar.gz
bcm5719-llvm-6baa776173902eb3a1f4ffbc8f8cdfd06f7fe81a.zip
Debug Info: Fix for break due to r181271
Apparently we didn't keep an association of Compile Unit metadata nodes to DIEs so looking up that parental context failed & thus caused no DW_TAG_imported_modules to be emitted at the CU scope. Fix this by adding the mapping & sure up the test case to verify this. llvm-svn: 181339
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index aeaa63f2af5..90dceacb798 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -685,6 +685,7 @@ CompileUnit *DwarfDebug::constructCompileUnit(const MDNode *N) {
CompileUnit *NewCU = new CompileUnit(GlobalCUIndexCount++,
DIUnit.getLanguage(), Die, Asm,
this, &InfoHolder);
+ NewCU->insertDIE(N, Die);
FileIDCUMap[NewCU->getUniqueID()] = 0;
// Call this to emit a .file directive if it wasn't emitted for the source
OpenPOWER on IntegriCloud