diff options
author | Eric Christopher <echristo@gmail.com> | 2013-08-26 23:57:03 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-08-26 23:57:03 +0000 |
commit | 6b16b43ef95d2ffbad889601f26786ecdbd914b4 (patch) | |
tree | 14fa4992ed4fc4c7e015516549dabc3eb795abe7 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 6fdf324f4446cb0e56a787f448ee41bd86c27bd2 (diff) | |
download | bcm5719-llvm-6b16b43ef95d2ffbad889601f26786ecdbd914b4.tar.gz bcm5719-llvm-6b16b43ef95d2ffbad889601f26786ecdbd914b4.zip |
Make the lifetime of the DICompileUnit we're constructing from the
MDNode more clear as just for a single argument.
llvm-svn: 189294
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 0dba9717c91..6006f280931 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2686,14 +2686,13 @@ void DwarfDebug::emitDebugInlineInfo() { // DW_AT_ranges_base, DW_AT_addr_base. If DW_AT_ranges is present, // DW_AT_low_pc and DW_AT_high_pc are not used, and vice versa. CompileUnit *DwarfDebug::constructSkeletonCU(const CompileUnit *CU) { - DICompileUnit DIUnit(CU->getNode()); DIE *Die = new DIE(dwarf::DW_TAG_compile_unit); CompileUnit *NewCU = new CompileUnit(CU->getUniqueID(), Die, CU->getNode(), Asm, this, &SkeletonHolder); NewCU->addLocalString(Die, dwarf::DW_AT_GNU_dwo_name, - DIUnit.getSplitDebugFilename()); + DICompileUnit(CU->getNode()).getSplitDebugFilename()); // Relocate to the beginning of the addr_base section, else 0 for the // beginning of the one for this compile unit. |