diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-10-31 18:05:02 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-10-31 18:05:02 +0000 |
commit | 7d82b4284984143a093b793d0979a6bee4490332 (patch) | |
tree | 0437e942ae48e6cff92e19e32afcea6764a93ccd /lib/DebugInfo/DWARFUnit.cpp | |
parent | b8b70e10a2b3f252314e0d176379778fe8f3b582 (diff) | |
download | external_llvm-7d82b4284984143a093b793d0979a6bee4490332.zip external_llvm-7d82b4284984143a093b793d0979a6bee4490332.tar.gz external_llvm-7d82b4284984143a093b793d0979a6bee4490332.tar.bz2 |
DWARFUnit: kill dead code and make a couple of functions private. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFUnit.cpp')
-rw-r--r-- | lib/DebugInfo/DWARFUnit.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/DebugInfo/DWARFUnit.cpp b/lib/DebugInfo/DWARFUnit.cpp index 090d441..5167eb9 100644 --- a/lib/DebugInfo/DWARFUnit.cpp +++ b/lib/DebugInfo/DWARFUnit.cpp @@ -85,30 +85,6 @@ bool DWARFUnit::extract(DataExtractor debug_info, uint32_t *offset_ptr) { return false; } -uint32_t -DWARFUnit::extract(uint32_t offset, DataExtractor debug_info_data, - const DWARFAbbreviationDeclarationSet *abbrevs) { - clear(); - - Offset = offset; - - if (debug_info_data.isValidOffset(offset)) { - Length = debug_info_data.getU32(&offset); - Version = debug_info_data.getU16(&offset); - bool abbrevsOK = debug_info_data.getU32(&offset) == abbrevs->getOffset(); - Abbrevs = abbrevs; - AddrSize = debug_info_data.getU8(&offset); - - bool versionOK = DWARFContext::isSupportedVersion(Version); - bool addrSizeOK = AddrSize == 4 || AddrSize == 8; - - if (versionOK && addrSizeOK && abbrevsOK && - debug_info_data.isValidOffset(offset)) - return offset; - } - return 0; -} - bool DWARFUnit::extractRangeList(uint32_t RangeListOffset, DWARFDebugRangeList &RangeList) const { // Require that compile unit is extracted. |