summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFUnit.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-10-08 00:24:41 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-10-08 00:24:41 +0000
commit4b4d64bce4a946760966013ba35ee273be17612d (patch)
tree781da6f8082c1c5034dcf77a65ed54aad1556254 /llvm/lib/DebugInfo/DWARFUnit.cpp
parent7c3f6ac57e7e7e0311708d43f97bd917c34ed537 (diff)
downloadbcm5719-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.cpp14
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();
}
OpenPOWER on IntegriCloud