From: Eric Christopher Date: Thu, 2 Jan 2014 21:38:18 +0000 (+0000) Subject: Elaborate on comment for skeleton CU construction. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=628dca146eb20a652704d475e41af75eb9b28a44;p=oota-llvm.git Elaborate on comment for skeleton CU construction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198358 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index a1e415a1bd7..44163d20f4c 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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(),