summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-10-09 00:57:31 +0000
committerEric Christopher <echristo@gmail.com>2014-10-09 00:57:31 +0000
commit2ae2de75629a2c6144ac5218663d68f4ae617422 (patch)
tree20234ddef501e6028cadf078235be07a9ea361e7 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent616b827ad0e8ae6f4409d20c3bd404d5a14ca6ae (diff)
downloadbcm5719-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.cpp2
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(),
OpenPOWER on IntegriCloud