summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-23 04:36:26 +0000
committerChris Lattner <sabre@nondot.org>2005-01-23 04:36:26 +0000
commitffcb0ae3291afe795d5b00d8cab0afef2103a024 (patch)
tree593e837f330693aa16403f6dbd7711c900d1d31e
parent2877e9e826ed2258ab9fffff5170fa08529c2884 (diff)
downloadbcm5719-llvm-ffcb0ae3291afe795d5b00d8cab0afef2103a024.tar.gz
bcm5719-llvm-ffcb0ae3291afe795d5b00d8cab0afef2103a024.zip
Adjust to changes in SelectionDAG interface.
llvm-svn: 19779
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 20d731332b8..e5266c294f8 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -1018,7 +1018,7 @@ void SelectionDAGISel::BuildSelectionDAG(SelectionDAG &DAG, BasicBlock *LLVMBB,
void SelectionDAGISel::SelectBasicBlock(BasicBlock *LLVMBB, MachineFunction &MF,
FunctionLoweringInfo &FuncInfo) {
- SelectionDAG DAG(TLI.getTargetMachine(), MF);
+ SelectionDAG DAG(TLI, MF);
CurDAG = &DAG;
std::vector<std::pair<MachineInstr*, unsigned> > PHINodesToUpdate;
@@ -1031,7 +1031,7 @@ void SelectionDAGISel::SelectBasicBlock(BasicBlock *LLVMBB, MachineFunction &MF,
// Second step, hack on the DAG until it only uses operations and types that
// the target supports.
- DAG.Legalize(TLI);
+ DAG.Legalize();
DEBUG(std::cerr << "Legalized selection DAG:\n");
DEBUG(DAG.dump());
OpenPOWER on IntegriCloud