OSDN Git Service

Cleanup some unused or trivial functions in DwarfCompileUnit
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 3 Nov 2014 17:10:38 +0000 (17:10 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 3 Nov 2014 17:10:38 +0000 (17:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221164 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfCompileUnit.h

index 13b3fda..706ea10 100644 (file)
@@ -395,7 +395,7 @@ DwarfCompileUnit::addScopeRangeList(DIE &ScopeDIE,
                             DD->getLabelAfterInsn(R.second)));
 
   // Add the range list to the set of ranges to be emitted.
-  addRangeList(std::move(List));
+  CURangeLists.push_back(std::move(List));
 }
 
 void DwarfCompileUnit::attachRangesOrLowHighPC(
index 53be518..787ac23 100644 (file)
@@ -226,16 +226,10 @@ public:
 
   void applySubprogramAttributesToDefinition(DISubprogram SP, DIE &SPDie);
 
-  /// addRangeList - Add an address range list to the list of range lists.
-  void addRangeList(RangeSpanList Ranges) {
-    CURangeLists.push_back(std::move(Ranges));
-  }
-
   /// getRangeLists - Get the vector of range lists.
   const SmallVectorImpl<RangeSpanList> &getRangeLists() const {
     return CURangeLists;
   }
-  SmallVectorImpl<RangeSpanList> &getRangeLists() { return CURangeLists; }
 
   /// getRanges - Get the list of ranges for this unit.
   const SmallVectorImpl<RangeSpan> &getRanges() const { return CURanges; }