From 628dca146eb20a652704d475e41af75eb9b28a44 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 2 Jan 2014 21:38:18 +0000 Subject: [PATCH] Elaborate on comment for skeleton CU construction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198358 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(), -- 2.34.1