Remove unused parameter
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 24 Apr 2014 01:25:10 +0000 (01:25 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 24 Apr 2014 01:25:10 +0000 (01:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207061 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h

index 531c44cde4cee637abf81defbbc2830d0f6a9327..bc155f4f0317475a669969a8d331fc04c4059bfc 100644 (file)
@@ -271,8 +271,7 @@ static bool SectionSort(const MCSection *A, const MCSection *B) {
 // TODO: Determine whether or not we should add names for programs
 // that do not have a DW_AT_name or DW_AT_linkage_name field - this
 // is only slightly different than the lookup of non-standard ObjC names.
-void DwarfDebug::addSubprogramNames(DwarfUnit &TheU, DISubprogram SP,
-                                    DIE *Die) {
+void DwarfDebug::addSubprogramNames(DISubprogram SP, DIE *Die) {
   if (!SP.isDefinition())
     return;
   addAccelName(SP.getName(), Die);
@@ -359,7 +358,7 @@ DIE *DwarfDebug::updateSubprogramScopeDIE(DwarfCompileUnit &SPCU,
 
   // Add name to the name table, we do this here because we're guaranteed
   // to have concrete versions of our DW_TAG_subprogram nodes.
-  addSubprogramNames(SPCU, SP, SPDie);
+  addSubprogramNames(SP, SPDie);
 
   return SPDie;
 }
@@ -501,7 +500,7 @@ DIE *DwarfDebug::constructInlinedScopeDIE(DwarfCompileUnit &TheCU,
 
   // Add name to the name table, we do this here because we're guaranteed
   // to have concrete versions of our DW_TAG_inlined_subprogram nodes.
-  addSubprogramNames(TheCU, InlinedSP, ScopeDIE);
+  addSubprogramNames(InlinedSP, ScopeDIE);
 
   return ScopeDIE;
 }
index 02887b10fd044c4a0d3a99593756277b66f05ed6..5e8ef28a8710cd280c13109f71a2b0e9b958544a 100644 (file)
@@ -640,7 +640,7 @@ public:
   /// or another context nested inside a subprogram.
   bool isSubprogramContext(const MDNode *Context);
 
-  void addSubprogramNames(DwarfUnit &TheU, DISubprogram SP, DIE *Die);
+  void addSubprogramNames(DISubprogram SP, DIE *Die);
 
   AddressPool &getAddressPool() { return AddrPool; }