[llvm] r207061 - Remove unused parameter

David Blaikie dblaikie at gmail.com
Wed Apr 23 18:25:10 PDT 2014


Author: dblaikie
Date: Wed Apr 23 20:25:10 2014
New Revision: 207061

URL: http://llvm.org/viewvc/llvm-project?rev=207061&view=rev
Log:
Remove unused parameter

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=207061&r1=207060&r2=207061&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Wed Apr 23 20:25:10 2014
@@ -271,8 +271,7 @@ static bool SectionSort(const MCSection
 // 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::updateSubprogramScopeDI
 
   // 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::constructInlinedScopeDI
 
   // 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;
 }

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h?rev=207061&r1=207060&r2=207061&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h Wed Apr 23 20:25:10 2014
@@ -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; }
 





More information about the llvm-commits mailing list