summaryrefslogtreecommitdiff
path: root/lib/DebugInfo/DWARFFormValue.cpp
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
commite7174f183280fa4e3288f48ae01b5190f0011d48 (patch)
tree85045cb3e6f134ee2b651f3bc3affec37df36c42 /lib/DebugInfo/DWARFFormValue.cpp
parenteaad5cdc2a3ac1f8813e9ee72c58428fd5e8bc33 (diff)
downloadllvm-e7174f183280fa4e3288f48ae01b5190f0011d48.tar.gz
llvm-e7174f183280fa4e3288f48ae01b5190f0011d48.tar.bz2
llvm-e7174f183280fa4e3288f48ae01b5190f0011d48.tar.xz
Remove dead code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFFormValue.cpp')
-rw-r--r--lib/DebugInfo/DWARFFormValue.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/DebugInfo/DWARFFormValue.cpp b/lib/DebugInfo/DWARFFormValue.cpp
index 48e0d20908..4ae92fc898 100644
--- a/lib/DebugInfo/DWARFFormValue.cpp
+++ b/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;