mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Adjust to changes in SelectionDAG interface.
llvm-svn: 19779
This commit is contained in:
parent
519fcf19c2
commit
4c997d281c
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user