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 | 384ceb8446bebe4425e65d1035256eee3b4cfa6d (patch) | |
tree | c6b655bcfd39d33e707cd37df9a227ac9135fbd6 /include | |
parent | cfb476fb20476aea15ca800ef571bfff7b5f3d29 (diff) | |
download | external_llvm-384ceb8446bebe4425e65d1035256eee3b4cfa6d.zip external_llvm-384ceb8446bebe4425e65d1035256eee3b4cfa6d.tar.gz external_llvm-384ceb8446bebe4425e65d1035256eee3b4cfa6d.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/FunctionLoweringInfo.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/FunctionLoweringInfo.h b/include/llvm/CodeGen/FunctionLoweringInfo.h index ea6cb27..206fef7 100644 --- a/include/llvm/CodeGen/FunctionLoweringInfo.h +++ b/include/llvm/CodeGen/FunctionLoweringInfo.h @@ -49,8 +49,9 @@ class Value; /// function that is used when lowering a region of the function. /// class FunctionLoweringInfo { + const TargetMachine &TM; + const TargetLowering *TLI; public: - const TargetLowering &TLI; const Function *Fn; MachineFunction *MF; MachineRegisterInfo *RegInfo; @@ -115,7 +116,7 @@ public: /// there's no other convenient place for it to live right now. std::vector<std::pair<MachineInstr*, unsigned> > PHINodesToUpdate; - explicit FunctionLoweringInfo(const TargetLowering &TLI); + explicit FunctionLoweringInfo(const TargetMachine &TM); /// set - Initialize this FunctionLoweringInfo with the given Function /// and its associated MachineFunction. |