diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-10-08 00:24:41 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-10-08 00:24:41 +0000 |
commit | 4b4d64bce4a946760966013ba35ee273be17612d (patch) | |
tree | 781da6f8082c1c5034dcf77a65ed54aad1556254 /llvm/lib/DebugInfo/DWARFUnit.cpp | |
parent | 7c3f6ac57e7e7e0311708d43f97bd917c34ed537 (diff) | |
download | bcm5719-llvm-4b4d64bce4a946760966013ba35ee273be17612d.tar.gz bcm5719-llvm-4b4d64bce4a946760966013ba35ee273be17612d.zip |
[DebugInfo] Pass DWARFSection down to DWARFUnit constructor (NFC).
Keep the actual section contents and the relocation map together.
llvm-svn: 219261
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFUnit.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFUnit.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/DebugInfo/DWARFUnit.cpp b/llvm/lib/DebugInfo/DWARFUnit.cpp index 092eb32d2a1..82c45297662 100644 --- a/llvm/lib/DebugInfo/DWARFUnit.cpp +++ b/llvm/lib/DebugInfo/DWARFUnit.cpp @@ -30,13 +30,13 @@ void DWARFUnitSectionBase::parseDWO(DWARFContext &C, C.getAddrSection(), C.isLittleEndian()); } -DWARFUnit::DWARFUnit(DWARFContext &DC, const DWARFDebugAbbrev *DA, - StringRef IS, StringRef RS, StringRef SS, StringRef SOS, - StringRef AOS, const RelocAddrMap *M, bool LE, - const DWARFUnitSectionBase& UnitSection) - : Context(DC), Abbrev(DA), InfoSection(IS), RangeSection(RS), - StringSection(SS), StringOffsetSection(SOS), AddrOffsetSection(AOS), - RelocMap(M), isLittleEndian(LE), UnitSection(UnitSection) { +DWARFUnit::DWARFUnit(DWARFContext &DC, const DWARFSection &Section, + const DWARFDebugAbbrev *DA, StringRef RS, StringRef SS, + StringRef SOS, StringRef AOS, bool LE, + const DWARFUnitSectionBase &UnitSection) + : Context(DC), InfoSection(Section), Abbrev(DA), RangeSection(RS), + StringSection(SS), StringOffsetSection(SOS), AddrOffsetSection(AOS), + isLittleEndian(LE), UnitSection(UnitSection) { clear(); } |