OSDN Git Service

Remove unused parameter
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 9 Oct 2014 20:36:27 +0000 (20:36 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 9 Oct 2014 20:36:27 +0000 (20:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219440 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 86fe1a9..62c82a3 100644 (file)
@@ -330,8 +330,7 @@ bool DwarfDebug::isLexicalScopeDIENull(LexicalScope *Scope) {
   return !getLabelAfterInsn(Ranges.front().second);
 }
 
-void DwarfDebug::constructAbstractSubprogramScopeDIE(DwarfCompileUnit &TheCU,
-                                                     LexicalScope *Scope) {
+void DwarfDebug::constructAbstractSubprogramScopeDIE(LexicalScope *Scope) {
   assert(Scope && Scope->getScopeNode());
   assert(Scope->isAbstractScope());
   assert(!Scope->getInlinedAt());
@@ -365,7 +364,7 @@ void DwarfDebug::constructAbstractSubprogramScopeDIE(DwarfCompileUnit &TheCU,
                                  DIDescriptor());
   SPCU.applySubprogramAttributesToDefinition(SP, *AbsDef);
 
-  if (TheCU.getCUNode().getEmissionKind() != DIBuilder::LineTablesOnly)
+  if (SPCU.getCUNode().getEmissionKind() != DIBuilder::LineTablesOnly)
     SPCU.addUInt(*AbsDef, dwarf::DW_AT_inline, None, dwarf::DW_INL_inlined);
   if (DIE *ObjectPointer = SPCU.createAndAddScopeChildren(Scope, *AbsDef))
     SPCU.addDIEEntry(*AbsDef, dwarf::DW_AT_object_pointer, *ObjectPointer);
@@ -1431,7 +1430,7 @@ void DwarfDebug::endFunction(const MachineFunction *MF) {
         continue;
       ensureAbstractVariableIsCreated(DV, DV.getContext());
     }
-    constructAbstractSubprogramScopeDIE(TheCU, AScope);
+    constructAbstractSubprogramScopeDIE(AScope);
   }
 
   TheCU.constructSubprogramScopeDIE(FnScope);
index 7ee0bc7..9e314eb 100644 (file)
@@ -350,8 +350,8 @@ class DwarfDebug : public AsmPrinterHandler {
                                                const MDNode *Scope);
 
   /// \brief Construct a DIE for this abstract scope.
-  void constructAbstractSubprogramScopeDIE(DwarfCompileUnit &TheCU,
-                                           LexicalScope *Scope);
+  void constructAbstractSubprogramScopeDIE(LexicalScope *Scope);
+
   /// \brief Emit initial Dwarf sections with a label at the start of each one.
   void emitSectionLabels();