[DebugInfo] Pass DWARFSection down to DWARFUnit constructor (NFC).
Keep the actual section contents and the relocation map together.
llvm-svn: 219261
diff --git a/llvm/lib/DebugInfo/DWARFCompileUnit.h b/llvm/lib/DebugInfo/DWARFCompileUnit.h
index 47c7191..b3190b18 100644
--- a/llvm/lib/DebugInfo/DWARFCompileUnit.h
+++ b/llvm/lib/DebugInfo/DWARFCompileUnit.h
@@ -16,11 +16,11 @@
class DWARFCompileUnit : public DWARFUnit {
public:
- DWARFCompileUnit(DWARFContext& Context, const DWARFDebugAbbrev *DA,
- StringRef IS, StringRef RS, StringRef SS, StringRef SOS,
- StringRef AOS, const RelocAddrMap *M, bool LE,
+ DWARFCompileUnit(DWARFContext &Context, const DWARFSection &Section,
+ const DWARFDebugAbbrev *DA, StringRef RS, StringRef SS,
+ StringRef SOS, StringRef AOS, bool LE,
const DWARFUnitSectionBase &UnitSection)
- : DWARFUnit(Context, DA, IS, RS, SS, SOS, AOS, M, LE, UnitSection) {}
+ : DWARFUnit(Context, Section, DA, RS, SS, SOS, AOS, LE, UnitSection) {}
void dump(raw_ostream &OS);
// VTable anchor.
~DWARFCompileUnit() override;