diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-20 21:05:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-20 21:05:57 +0000 |
commit | 02c84b8910687c9145182339999393d577293960 (patch) | |
tree | a8d754231ba898a247e22f23162fa5d47fc6eed6 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 43d1c7c607a67831ddf401162aae39755d514ae5 (diff) | |
download | bcm5719-llvm-02c84b8910687c9145182339999393d577293960.tar.gz bcm5719-llvm-02c84b8910687c9145182339999393d577293960.zip |
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.
llvm-svn: 55076
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 997bd116048..9ffb6ccc4af 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -5111,9 +5111,9 @@ void SelectionDAGISel::BuildSelectionDAG(SelectionDAG &DAG, BasicBlock *LLVMBB, !BB->isLandingPad() && isa<BranchInst>(LLVMBB->getTerminator()) && cast<BranchInst>(LLVMBB->getTerminator())->isUnconditional()) { - if (FastISel *F = TLI.createFastISel(BB, &FuncInfo.MF, - TLI.getTargetMachine().getInstrInfo())) { - Begin = F->SelectInstructions(Begin, LLVMBB->end(), FuncInfo.ValueMap); + if (FastISel *F = TLI.createFastISel(FuncInfo.MF)) { + Begin = F->SelectInstructions(Begin, LLVMBB->end(), + FuncInfo.ValueMap, BB); // Clean up the FastISel object. TODO: Reorganize what data is // stored in the FastISel class itself and what is merely passed |