diff options
| author | Matthias Braun <matze@braunis.de> | 2018-11-05 23:49:14 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2018-11-05 23:49:14 +0000 |
| commit | 7a75a91b5b0e46afff5f8e0e9deb3833ce12a26a (patch) | |
| tree | f5cd13ead11db685de7210cc2439860ab1596739 /llvm/lib/CodeGen/MachineFunction.cpp | |
| parent | 3d849f67cbae5807f18fb2d46dfccd3aeae3c39b (diff) | |
| download | bcm5719-llvm-7a75a91b5b0e46afff5f8e0e9deb3833ce12a26a.tar.gz bcm5719-llvm-7a75a91b5b0e46afff5f8e0e9deb3833ce12a26a.zip | |
MachineFunction: Store more specific reference to LLVMTargetMachine; NFC
MachineFunction can only be used in code using lib/CodeGen, hence we
can keep a more specific reference to LLVMTargetMachine rather than just
TargetMachine around.
Do the same for references in ScheduleDAG and RegUsageInfoCollector.
llvm-svn: 346183
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 9e4963c4bdb..488481cec37 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -130,7 +130,8 @@ static inline unsigned getFnStackAlignment(const TargetSubtargetInfo *STI, return STI->getFrameLowering()->getStackAlignment(); } -MachineFunction::MachineFunction(const Function &F, const TargetMachine &Target, +MachineFunction::MachineFunction(const Function &F, + const LLVMTargetMachine &Target, const TargetSubtargetInfo &STI, unsigned FunctionNum, MachineModuleInfo &mmi) : F(F), Target(Target), STI(&STI), Ctx(mmi.getContext()), MMI(mmi) { |

