Delete unused arguments.
authorDan Gohman <gohman@apple.com>
Wed, 14 Apr 2010 20:05:00 +0000 (20:05 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 14 Apr 2010 20:05:00 +0000 (20:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101275 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGISel.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 0d5fbec056db1ce78a2e8168ac57d83d33a44710..e6c10e62a765d91e39353963856c4b35a088d656 100644 (file)
@@ -279,8 +279,7 @@ private:
                     const SDValue *Ops, unsigned NumOps, unsigned EmitNodeInfo);
   
   void PrepareEHLandingPad(MachineBasicBlock *BB);
                     const SDValue *Ops, unsigned NumOps, unsigned EmitNodeInfo);
   
   void PrepareEHLandingPad(MachineBasicBlock *BB);
-  void SelectAllBasicBlocks(Function &Fn, MachineFunction &MF,
-                            const TargetInstrInfo &TII);
+  void SelectAllBasicBlocks(Function &Fn);
   void FinishBasicBlock();
 
   void SelectBasicBlock(BasicBlock *LLVMBB,
   void FinishBasicBlock();
 
   void SelectBasicBlock(BasicBlock *LLVMBB,
index 4321236c44e5aab4387dc7fb75d8b6aa11ecd483..b6a56b68e0072e248ffee1e6927e5f991c3f56e1 100644 (file)
@@ -210,7 +210,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
   FuncInfo->set(Fn, *MF, EnableFastISel);
   SDB->init(GFI, *AA);
 
   FuncInfo->set(Fn, *MF, EnableFastISel);
   SDB->init(GFI, *AA);
 
-  SelectAllBasicBlocks(Fn, *MF, TII);
+  SelectAllBasicBlocks(Fn);
 
   // Release function-specific state. SDB and CurDAG are already cleared
   // at this point.
 
   // Release function-specific state. SDB and CurDAG are already cleared
   // at this point.
@@ -744,13 +744,11 @@ void SelectionDAGISel::PrepareEHLandingPad(MachineBasicBlock *BB) {
   }
 }
 
   }
 }
 
-void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn,
-                                            MachineFunction &MF,
-                                            const TargetInstrInfo &TII) {
+void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn) {
   // Initialize the Fast-ISel state, if needed.
   FastISel *FastIS = 0;
   if (EnableFastISel)
   // Initialize the Fast-ISel state, if needed.
   FastISel *FastIS = 0;
   if (EnableFastISel)
-    FastIS = TLI.createFastISel(MF, FuncInfo->ValueMap, FuncInfo->MBBMap,
+    FastIS = TLI.createFastISel(*MF, FuncInfo->ValueMap, FuncInfo->MBBMap,
                                 FuncInfo->StaticAllocaMap
 #ifndef NDEBUG
                                 , FuncInfo->CatchInfoLost
                                 FuncInfo->StaticAllocaMap
 #ifndef NDEBUG
                                 , FuncInfo->CatchInfoLost
@@ -817,7 +815,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn,
             break;
           }
 
             break;
           }
 
-        SetDebugLoc(BI, SDB, FastIS, &MF);
+        SetDebugLoc(BI, SDB, FastIS, MF);
 
         // Try to select the instruction with FastISel.
         if (FastIS->SelectInstruction(BI)) {
 
         // Try to select the instruction with FastISel.
         if (FastIS->SelectInstruction(BI)) {