llvm.org GIT mirror llvm / e7174f1
Remove dead code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191179 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 7 years ago
2 changed file(s) with 0 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
5757 const uint8_t *BlockData() const;
5858 uint64_t getReference(const DWARFCompileUnit* cu) const;
5959
60 /// Resolve any compile unit specific references so that we don't need
61 /// the compile unit at a later time in order to work with the form
62 /// value.
63 bool resolveCompileUnitReferences(const DWARFCompileUnit* cu);
6460 uint64_t getUnsigned() const { return Value.uval; }
6561 int64_t getSigned() const { return Value.sval; }
6662 const char *getAsCString(const DWARFCompileUnit *CU) const;
482482 return die_offset;
483483 }
484484
485 bool
486 DWARFFormValue::resolveCompileUnitReferences(const DWARFCompileUnit *cu) {
487 switch (Form) {
488 case DW_FORM_ref1:
489 case DW_FORM_ref2:
490 case DW_FORM_ref4:
491 case DW_FORM_ref8:
492 case DW_FORM_ref_udata:
493 Value.uval += cu->getOffset();
494 Form = DW_FORM_ref_addr;
495 return true;
496 default:
497 break;
498 }
499 return false;
500 }
501
502485 const uint8_t *DWARFFormValue::BlockData() const {
503486 if (!isInlinedCStr())
504487 return Value.data;