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 | bb466331e7e50d03497ce40ee344870236fd9c32 (patch) | |
tree | 72553ec5a9e53eeb22306e0cf5e971f969a94831 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 2385852b5b9b82e15eb4502d71b5f916882418d7 (diff) | |
download | llvm-bb466331e7e50d03497ce40ee344870236fd9c32.tar.gz llvm-bb466331e7e50d03497ce40ee344870236fd9c32.tar.bz2 llvm-bb466331e7e50d03497ce40ee344870236fd9c32.tar.xz |
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 997bd11604..9ffb6ccc4a 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/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 |