mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 12:08:33 +00:00
Remove dead code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191179 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eaad5cdc2a
commit
e7174f1832
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user