diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-11-04 22:12:18 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-11-04 22:12:18 +0000 |
commit | 9bfd7a9f43364bd8722179093328c803288bfd22 (patch) | |
tree | 5d4e4c27b319efafc93856a7bf3e854688bafc59 /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | |
parent | bfd0f01dd75f299bb521a2a31f270b3687be2cee (diff) | |
download | bcm5719-llvm-9bfd7a9f43364bd8722179093328c803288bfd22.tar.gz bcm5719-llvm-9bfd7a9f43364bd8722179093328c803288bfd22.zip |
Move cross-unit DIE caching to the DwarfFile level, so it doesn't interfere with fission-gmlt data and produce skeleton<>full unit cross referencing.
llvm-svn: 221305
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index 1730b9b62ea..1793757afcf 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -141,7 +141,7 @@ static bool isShareableAcrossCUs(DIDescriptor D) { /// will be kept in DwarfDebug for shareable DIEs. DIE *DwarfUnit::getDIE(DIDescriptor D) const { if (isShareableAcrossCUs(D)) - return DD->getDIE(D); + return DU->getDIE(D); return MDNodeToDieMap.lookup(D); } @@ -150,7 +150,7 @@ DIE *DwarfUnit::getDIE(DIDescriptor D) const { /// will be kept in DwarfDebug for shareable DIEs. void DwarfUnit::insertDIE(DIDescriptor Desc, DIE *D) { if (isShareableAcrossCUs(Desc)) { - DD->insertDIE(Desc, D); + DU->insertDIE(Desc, D); return; } MDNodeToDieMap.insert(std::make_pair(Desc, D)); |