aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/DWARFUnit.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-10-31 18:05:02 +0000
committerAlexey Samsonov <samsonov@google.com>2013-10-31 18:05:02 +0000
commit0428d12df12bbf1d98927a891246a29e50ea5bdb (patch)
tree3c7aca302edbec69370cd36cd0b8f85fafdba786 /llvm/lib/DebugInfo/DWARFUnit.cpp
parent4dbdc9021d7f655a8a5bd6c97806a9069778252a (diff)
downloadllvm-0428d12df12bbf1d98927a891246a29e50ea5bdb.zip
llvm-0428d12df12bbf1d98927a891246a29e50ea5bdb.tar.gz
llvm-0428d12df12bbf1d98927a891246a29e50ea5bdb.tar.bz2
DWARFUnit: kill dead code and make a couple of functions private. No functionality change.
llvm-svn: 193780
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFUnit.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARFUnit.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/llvm/lib/DebugInfo/DWARFUnit.cpp b/llvm/lib/DebugInfo/DWARFUnit.cpp
index 090d441..5167eb9 100644
--- a/llvm/lib/DebugInfo/DWARFUnit.cpp
+++ b/llvm/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.