summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-09-22 18:25:32 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-09-22 18:25:32 +0000
commit4f099cb2ba6cbd0f29ce983bc14891e395263fa0 (patch)
treed42478685e0bf631d16dc40e0381c7212719fcf9
parentba860d74ba0087a652d218cf8ec7c9d102552b18 (diff)
downloadbcm5719-llvm-4f099cb2ba6cbd0f29ce983bc14891e395263fa0.tar.gz
bcm5719-llvm-4f099cb2ba6cbd0f29ce983bc14891e395263fa0.zip
Remove dead code
llvm-svn: 191179
-rw-r--r--llvm/include/llvm/DebugInfo/DWARFFormValue.h4
-rw-r--r--llvm/lib/DebugInfo/DWARFFormValue.cpp17
2 files changed, 0 insertions, 21 deletions
diff --git a/llvm/include/llvm/DebugInfo/DWARFFormValue.h b/llvm/include/llvm/DebugInfo/DWARFFormValue.h
index ad6f71d664e..561815586a2 100644
--- a/llvm/include/llvm/DebugInfo/DWARFFormValue.h
+++ b/llvm/include/llvm/DebugInfo/DWARFFormValue.h
@@ -58,10 +58,6 @@ public:
const uint8_t *BlockData() const;
uint64_t getReference(const DWARFCompileUnit* cu) const;
- /// Resolve any compile unit specific references so that we don't need
- /// the compile unit at a later time in order to work with the form
- /// value.
- bool resolveCompileUnitReferences(const DWARFCompileUnit* cu);
uint64_t getUnsigned() const { return Value.uval; }
int64_t getSigned() const { return Value.sval; }
const char *getAsCString(const DWARFCompileUnit *CU) const;
diff --git a/llvm/lib/DebugInfo/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARFFormValue.cpp
index 48e0d209080..4ae92fc8981 100644
--- a/llvm/lib/DebugInfo/DWARFFormValue.cpp
+++ b/llvm/lib/DebugInfo/DWARFFormValue.cpp
@@ -483,23 +483,6 @@ uint64_t DWARFFormValue::getReference(const DWARFCompileUnit *cu) const {
return die_offset;
}
-bool
-DWARFFormValue::resolveCompileUnitReferences(const DWARFCompileUnit *cu) {
- switch (Form) {
- case DW_FORM_ref1:
- case DW_FORM_ref2:
- case DW_FORM_ref4:
- case DW_FORM_ref8:
- case DW_FORM_ref_udata:
- Value.uval += cu->getOffset();
- Form = DW_FORM_ref_addr;
- return true;
- default:
- break;
- }
- return false;
-}
-
const uint8_t *DWARFFormValue::BlockData() const {
if (!isInlinedCStr())
return Value.data;
OpenPOWER on IntegriCloud