From c34113433af6fa6e8ccea46db2c0cf0bc2d2eb81 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 3 Nov 2014 17:10:38 +0000 Subject: [PATCH] Cleanup some unused or trivial functions in DwarfCompileUnit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221164 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 2 +- lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 13b3fda9380..706ea100e0c 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -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( diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 53be5188398..787ac23eb03 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -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 &getRangeLists() const { return CURangeLists; } - SmallVectorImpl &getRangeLists() { return CURangeLists; } /// getRanges - Get the list of ranges for this unit. const SmallVectorImpl &getRanges() const { return CURanges; } -- 2.11.0