Elaborate on comment for skeleton CU construction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198358 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2014-01-02 21:38:18 +00:00
parent 99ba84390f
commit 628dca146e

View File

@ -825,7 +825,10 @@ DwarfCompileUnit *DwarfDebug::constructDwarfCompileUnit(DICompileUnit DIUnit) {
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(),