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 13b3fda93807050b97e4a596003a866e45b56782..706ea100e0c844c204ac6dab550d71d49b42542b 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 53be518839839ce7a2b3a43361db409b158031ee..787ac23eb036341c91d0929b0613e6fc58ae1a87 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; }