aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-06-06 00:43:09 +0000
committerBill Wendling <isanbard@gmail.com>2013-06-06 00:43:09 +0000
commit6a2e7ac0b6647a409394e58b385e579ea62b5cba (patch)
treed96f9d55cc9f4fcbae8b0c8c496493ee0e0f5343 /include
parentf2d03d74ffe05d08ac7dccbb81f41d996a1f1d2a (diff)
downloadexternal_llvm-6a2e7ac0b6647a409394e58b385e579ea62b5cba.zip
external_llvm-6a2e7ac0b6647a409394e58b385e579ea62b5cba.tar.gz
external_llvm-6a2e7ac0b6647a409394e58b385e579ea62b5cba.tar.bz2
Cache the TargetLowering info object as a pointer.
Caching it as a pointer allows us to reset it if the TargetMachine object changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/SelectionDAGISel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGISel.h b/include/llvm/CodeGen/SelectionDAGISel.h
index a4721db..37bbc1f 100644
--- a/include/llvm/CodeGen/SelectionDAGISel.h
+++ b/include/llvm/CodeGen/SelectionDAGISel.h
@@ -43,7 +43,7 @@ namespace llvm {
class SelectionDAGISel : public MachineFunctionPass {
public:
const TargetMachine &TM;
- const TargetLowering &TLI;
+ const TargetLowering *TLI;
const TargetLibraryInfo *LibInfo;
const TargetTransformInfo *TTI;
FunctionLoweringInfo *FuncInfo;
@@ -60,7 +60,7 @@ public:
CodeGenOpt::Level OL = CodeGenOpt::Default);
virtual ~SelectionDAGISel();
- const TargetLowering &getTargetLowering() { return TLI; }
+ const TargetLowering *getTargetLowering() { return TLI; }
virtual void getAnalysisUsage(AnalysisUsage &AU) const;