diff options
| author | Adrian Prantl <aprantl@apple.com> | 2014-04-01 03:41:04 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2014-04-01 03:41:04 +0000 |
| commit | d09ba23fafcff122eaee90886345d1088936f408 (patch) | |
| tree | a94661924fafb77f5707e4031321adba5a04d9a9 /llvm/lib/CodeGen/AsmPrinter | |
| parent | 6cdce9ed109e7f7bf4cf4814212388a83e142d66 (diff) | |
| download | bcm5719-llvm-d09ba23fafcff122eaee90886345d1088936f408.tar.gz bcm5719-llvm-d09ba23fafcff122eaee90886345d1088936f408.zip | |
LTO type uniquing: store the Decl field of a DIImportedEntity as a DIRef.
No other functionality changes, DIBuilder testcase is included in a paired
CFE commit.
This relaxes the assertion in isScopeRef to also accept subclasses of
DIScope.
llvm-svn: 205279
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index f4182d0b79b..a21fa673118 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -794,7 +794,7 @@ void DwarfDebug::constructImportedEntityDIE(DwarfCompileUnit *TheCU, DIE *IMDie = new DIE(Module.getTag()); TheCU->insertDIE(Module, IMDie); DIE *EntityDie; - DIDescriptor Entity = Module.getEntity(); + DIDescriptor Entity = resolve(Module.getEntity()); if (Entity.isNameSpace()) EntityDie = TheCU->getOrCreateNameSpace(DINameSpace(Entity)); else if (Entity.isSubprogram()) |

