diff options
author | Eric Christopher <echristo@gmail.com> | 2014-10-09 00:57:31 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-10-09 00:57:31 +0000 |
commit | 2ae2de75629a2c6144ac5218663d68f4ae617422 (patch) | |
tree | 20234ddef501e6028cadf078235be07a9ea361e7 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 616b827ad0e8ae6f4409d20c3bd404d5a14ca6ae (diff) | |
download | bcm5719-llvm-2ae2de75629a2c6144ac5218663d68f4ae617422.tar.gz bcm5719-llvm-2ae2de75629a2c6144ac5218663d68f4ae617422.zip |
Remove uses of the TargetMachine from FunctionLoweringInfo
via caching TargetLowering and using the MachineFunction.
llvm-svn: 219375
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 006f3e0143a..a610e571810 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -336,7 +336,7 @@ void TargetLowering::AdjustInstrPostInstrSelection(MachineInstr *MI, SelectionDAGISel::SelectionDAGISel(TargetMachine &tm, CodeGenOpt::Level OL) : MachineFunctionPass(ID), TM(tm), - FuncInfo(new FunctionLoweringInfo(TM)), + FuncInfo(new FunctionLoweringInfo()), CurDAG(new SelectionDAG(tm, OL)), SDB(new SelectionDAGBuilder(*CurDAG, *FuncInfo, OL)), GFI(), |