mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
Delete unneeeded arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101276 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -62,7 +62,7 @@ public:
|
|||||||
|
|
||||||
virtual bool runOnMachineFunction(MachineFunction &MF);
|
virtual bool runOnMachineFunction(MachineFunction &MF);
|
||||||
|
|
||||||
virtual void EmitFunctionEntryCode(Function &Fn, MachineFunction &MF) {}
|
virtual void EmitFunctionEntryCode() {}
|
||||||
|
|
||||||
/// PreprocessISelDAG - This hook allows targets to hack on the graph before
|
/// PreprocessISelDAG - This hook allows targets to hack on the graph before
|
||||||
/// instruction selection starts.
|
/// instruction selection starts.
|
||||||
|
@@ -6001,7 +6001,7 @@ void SelectionDAGISel::LowerArguments(BasicBlock *LLVMBB) {
|
|||||||
|
|
||||||
// Finally, if the target has anything special to do, allow it to do so.
|
// Finally, if the target has anything special to do, allow it to do so.
|
||||||
// FIXME: this should insert code into the DAG!
|
// FIXME: this should insert code into the DAG!
|
||||||
EmitFunctionEntryCode(F, SDB->DAG.getMachineFunction());
|
EmitFunctionEntryCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Handle PHI nodes in successor blocks. Emit code into the SelectionDAG to
|
/// Handle PHI nodes in successor blocks. Emit code into the SelectionDAG to
|
||||||
|
@@ -183,7 +183,7 @@ namespace {
|
|||||||
return "X86 DAG->DAG Instruction Selection";
|
return "X86 DAG->DAG Instruction Selection";
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void EmitFunctionEntryCode(Function &Fn, MachineFunction &MF);
|
virtual void EmitFunctionEntryCode();
|
||||||
|
|
||||||
virtual bool IsProfitableToFold(SDValue N, SDNode *U, SDNode *Root) const;
|
virtual bool IsProfitableToFold(SDValue N, SDNode *U, SDNode *Root) const;
|
||||||
|
|
||||||
@@ -546,11 +546,11 @@ void X86DAGToDAGISel::EmitSpecialCodeForMain(MachineBasicBlock *BB,
|
|||||||
TII->get(X86::CALLpcrel32)).addExternalSymbol("__main");
|
TII->get(X86::CALLpcrel32)).addExternalSymbol("__main");
|
||||||
}
|
}
|
||||||
|
|
||||||
void X86DAGToDAGISel::EmitFunctionEntryCode(Function &Fn, MachineFunction &MF) {
|
void X86DAGToDAGISel::EmitFunctionEntryCode() {
|
||||||
// If this is main, emit special code for main.
|
// If this is main, emit special code for main.
|
||||||
MachineBasicBlock *BB = MF.begin();
|
if (const Function *Fn = MF->getFunction())
|
||||||
if (Fn.hasExternalLinkage() && Fn.getName() == "main")
|
if (Fn->hasExternalLinkage() && Fn->getName() == "main")
|
||||||
EmitSpecialCodeForMain(BB, MF.getFrameInfo());
|
EmitSpecialCodeForMain(MF->begin(), MF->getFrameInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user