[llvm] r198358 - Elaborate on comment for skeleton CU construction.
Eric Christopher
echristo at gmail.com
Thu Jan 2 13:38:18 PST 2014
Author: echristo
Date: Thu Jan 2 15:38:18 2014
New Revision: 198358
URL: http://llvm.org/viewvc/llvm-project?rev=198358&view=rev
Log:
Elaborate on comment for skeleton CU construction.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=198358&r1=198357&r2=198358&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Jan 2 15:38:18 2014
@@ -825,7 +825,10 @@ DwarfCompileUnit *DwarfDebug::constructD
if (useSplitDwarf()) {
NewCU->initSection(Asm->getObjFileLowering().getDwarfInfoDWOSection(),
DwarfInfoDWOSectionSym);
- // If we're splitting the dwarf then construct the skeleton CU now.
+ // If we're splitting the dwarf then construct the skeleton CU now
+ // since we'll need to be able to reference the symbols in the skeleton
+ // CU during various emission passes - in particular aranges need
+ // to reference the skeleton CU.
NewCU->setSkeleton(constructSkeletonCU(NewCU));
} else
NewCU->initSection(Asm->getObjFileLowering().getDwarfInfoSection(),
More information about the llvm-commits
mailing list