Sink DwarfUnit::SectionSym into DwarfCompileUnit as it's only needed/used there.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.cpp
index 2b47298898caaee07e42cae00996a2dcce4fd016..bbac4794aad697ff0f4394e37b9760a87b6f4ded 100644 (file)
@@ -576,7 +576,7 @@ void DwarfDebug::finalizeModuleInfo() {
     // FIXME: We should use ranges allow reordering of code ala
     // .subsections_via_symbols in mach-o. This would mean turning on
     // ranges for all subprogram DIEs for mach-o.
-    DwarfCompileUnit &U = SkCU ? *SkCU : *TheCU;
+    DwarfCompileUnit &U = SkCU ? *SkCU : TheCU;
     unsigned NumRanges = TheCU.getRanges().size();
     if (NumRanges) {
       if (NumRanges > 1) {
@@ -2151,8 +2151,7 @@ void DwarfDebug::addDwarfTypeUnitType(DwarfCompileUnit &CU,
   NewTU.setTypeSignature(Signature);
 
   if (useSplitDwarf())
-    NewTU.initSection(Asm->getObjFileLowering().getDwarfTypesDWOSection(),
-                      DwarfTypesDWOSectionSym);
+    NewTU.initSection(Asm->getObjFileLowering().getDwarfTypesDWOSection());
   else {
     CU.applyStmtList(UnitDie);
     NewTU.initSection(