1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Adjust to changes in SelectionDAG interface.

llvm-svn: 19779
This commit is contained in:
Chris Lattner 2005-01-23 04:36:26 +00:00
parent 519fcf19c2
commit 4c997d281c

View File

@ -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());