[llvm] r191179 - Remove dead code

David Blaikie dblaikie at gmail.com
Sun Sep 22 11:25:33 PDT 2013


Author: dblaikie
Date: Sun Sep 22 13:25:32 2013
New Revision: 191179

URL: http://llvm.org/viewvc/llvm-project?rev=191179&view=rev
Log:
Remove dead code

Modified:
    llvm/trunk/include/llvm/DebugInfo/DWARFFormValue.h
    llvm/trunk/lib/DebugInfo/DWARFFormValue.cpp

Modified: llvm/trunk/include/llvm/DebugInfo/DWARFFormValue.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/DWARFFormValue.h?rev=191179&r1=191178&r2=191179&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/DWARFFormValue.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/DWARFFormValue.h Sun Sep 22 13:25:32 2013
@@ -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;

Modified: llvm/trunk/lib/DebugInfo/DWARFFormValue.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFFormValue.cpp?rev=191179&r1=191178&r2=191179&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFFormValue.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFFormValue.cpp Sun Sep 22 13:25:32 2013
@@ -483,23 +483,6 @@ uint64_t DWARFFormValue::getReference(co
   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;





More information about the llvm-commits mailing list