Remove dead code
[oota-llvm.git] / lib / DebugInfo / DWARFFormValue.cpp
index 48e0d2090803d9ea7472afe47111268585b7a419..4ae92fc89816589dfa6def04a527ce8ddb73fdbd 100644 (file)
@@ -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;