diff options
| author | Bill Wendling <isanbard@gmail.com> | 2013-06-06 00:11:39 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2013-06-06 00:11:39 +0000 |
| commit | 8db01cb262b2eeaf50bde91cf87c95434ab2d341 (patch) | |
| tree | d3edf7dc2f80345926b96d41f8fa898cd00f7bbd /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
| parent | 30aa6b6243710c02edad4258fda3e4fa9ff59baf (diff) | |
| download | bcm5719-llvm-8db01cb262b2eeaf50bde91cf87c95434ab2d341.tar.gz bcm5719-llvm-8db01cb262b2eeaf50bde91cf87c95434ab2d341.zip | |
Don't cache the TargetLoweringInfo object inside of the FunctionLowering object.
The TargetLoweringInfo object is owned by the TargetMachine. In the future, the
TargetMachine object may change, which may also change the TargetLoweringInfo
object.
llvm-svn: 183356
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 7269bb260dd..15e228d3a67 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -278,7 +278,7 @@ void TargetLowering::AdjustInstrPostInstrSelection(MachineInstr *MI, SelectionDAGISel::SelectionDAGISel(const TargetMachine &tm, CodeGenOpt::Level OL) : MachineFunctionPass(ID), TM(tm), TLI(*tm.getTargetLowering()), - FuncInfo(new FunctionLoweringInfo(TLI)), + FuncInfo(new FunctionLoweringInfo(TM)), CurDAG(new SelectionDAG(tm, OL)), SDB(new SelectionDAGBuilder(*CurDAG, *FuncInfo, OL)), GFI(), |

