diff options
author | Frederic Riss <friss@apple.com> | 2014-10-06 03:36:18 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2014-10-06 03:36:18 +0000 |
commit | 6005dbd62ec97a25129889b4be148bf8068dc561 (patch) | |
tree | dec032f1c7f49a743c247fad1f484d5e7611da9c /llvm/lib/DebugInfo/DWARFUnit.cpp | |
parent | 6d2472daca6b0be8e3166a9b696bfa9892ebfc57 (diff) | |
download | llvm-6005dbd62ec97a25129889b4be148bf8068dc561.zip llvm-6005dbd62ec97a25129889b4be148bf8068dc561.tar.gz llvm-6005dbd62ec97a25129889b4be148bf8068dc561.tar.bz2 |
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
llvm-svn: 219098
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFUnit.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFUnit.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/DWARFUnit.cpp b/llvm/lib/DebugInfo/DWARFUnit.cpp index faf385c..46a765c 100644 --- a/llvm/lib/DebugInfo/DWARFUnit.cpp +++ b/llvm/lib/DebugInfo/DWARFUnit.cpp @@ -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, |