mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Simplify FastISel's constructor argument list, make the FastISel
class hold a MachineRegisterInfo member, and make the MachineBasicBlock be passed in to SelectInstructions rather than the FastISel constructor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55076 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -295,16 +295,14 @@ void FastISelEmitter::run(std::ostream &OS) {
|
||||
OS << ");\n";
|
||||
}
|
||||
OS << "public:\n";
|
||||
OS << " FastISel(MachineBasicBlock *mbb, MachineFunction *mf, ";
|
||||
OS << "const TargetInstrInfo *tii) : llvm::FastISel(mbb, mf, tii) {}\n";
|
||||
OS << " explicit FastISel(MachineFunction &mf) : llvm::FastISel(mf) {}\n";
|
||||
OS << "};\n";
|
||||
OS << "\n";
|
||||
|
||||
// Define the target FastISel creation function.
|
||||
OS << "llvm::FastISel *" << InstNS
|
||||
<< "createFastISel(MachineBasicBlock *mbb, MachineFunction *mf, ";
|
||||
OS << "const TargetInstrInfo *tii) {\n";
|
||||
OS << " return new " << InstNS << "FastISel(mbb, mf, tii);\n";
|
||||
<< "createFastISel(MachineFunction &mf) {\n";
|
||||
OS << " return new " << InstNS << "FastISel(mf);\n";
|
||||
OS << "}\n";
|
||||
OS << "\n";
|
||||
|
||||
|
Reference in New Issue
Block a user