diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-19 19:05:59 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-19 19:05:59 +0000 |
commit | c334960f16fc6b3fb7ea9c3a1ccfbf5e547295c9 (patch) | |
tree | fe79f776562215c4d66f46528d1940fb4dcaed0b /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | |
parent | a91754da6797f1a4139612179406410c8675aceb (diff) | |
download | bcm5719-llvm-c334960f16fc6b3fb7ea9c3a1ccfbf5e547295c9.tar.gz bcm5719-llvm-c334960f16fc6b3fb7ea9c3a1ccfbf5e547295c9.zip |
Code that needs a TargetMachine should have access to one directly, rather
than just getting one through a TargetLowering.
llvm-svn: 101802
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h index e3668e52dfc..a899f01d938 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h @@ -257,6 +257,7 @@ public: // TLI - This is information that describes the available target features we // need for lowering. This indicates when operations are unavailable, // implemented with a libcall, etc. + const TargetMachine &TM; const TargetLowering &TLI; SelectionDAG &DAG; const TargetData *TD; @@ -303,10 +304,10 @@ public: LLVMContext *Context; - SelectionDAGBuilder(SelectionDAG &dag, const TargetLowering &tli, - FunctionLoweringInfo &funcinfo, + SelectionDAGBuilder(SelectionDAG &dag, FunctionLoweringInfo &funcinfo, CodeGenOpt::Level ol) - : SDNodeOrder(0), TLI(tli), DAG(dag), FuncInfo(funcinfo), OptLevel(ol), + : SDNodeOrder(0), TM(dag.getTarget()), TLI(dag.getTargetLoweringInfo()), + DAG(dag), FuncInfo(funcinfo), OptLevel(ol), HasTailCall(false), Context(dag.getContext()) { } |