mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Factor the Unit section parsing into the DWARFUnitSection class.
Summary: No functional change. Reviewers: dblaikie, samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5522 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219098 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,6 +17,21 @@
|
||||
using namespace llvm;
|
||||
using namespace dwarf;
|
||||
|
||||
|
||||
void DWARFUnitSectionBase::parse(DWARFContext &C, StringRef SectionData,
|
||||
const RelocAddrMap &Map) {
|
||||
parseImpl(C, C.getDebugAbbrev(), SectionData, C.getRangeSection(),
|
||||
C.getStringSection(), StringRef(), C.getAddrSection(), Map,
|
||||
C.isLittleEndian());
|
||||
}
|
||||
|
||||
void DWARFUnitSectionBase::parseDWO(DWARFContext &C, StringRef SectionData,
|
||||
const RelocAddrMap &Map) {
|
||||
parseImpl(C, C.getDebugAbbrevDWO(), SectionData, C.getRangeDWOSection(),
|
||||
C.getStringDWOSection(), C.getStringOffsetDWOSection(),
|
||||
C.getAddrSection(), Map, C.isLittleEndian());
|
||||
}
|
||||
|
||||
DWARFUnit::DWARFUnit(DWARFContext &DC, const DWARFDebugAbbrev *DA,
|
||||
StringRef IS, StringRef RS, StringRef SS, StringRef SOS,
|
||||
StringRef AOS, const RelocAddrMap *M, bool LE,
|
||||
|
Reference in New Issue
Block a user