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/RegUsageInfoCollector.cpp | |
parent | 3d849f67cbae5807f18fb2d46dfccd3aeae3c39b (diff) | |
download | llvm-7a75a91b5b0e46afff5f8e0e9deb3833ce12a26a.zip llvm-7a75a91b5b0e46afff5f8e0e9deb3833ce12a26a.tar.gz llvm-7a75a91b5b0e46afff5f8e0e9deb3833ce12a26a.tar.bz2 |
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/RegUsageInfoCollector.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegUsageInfoCollector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegUsageInfoCollector.cpp b/llvm/lib/CodeGen/RegUsageInfoCollector.cpp index 9db2af9..66c7c5c 100644 --- a/llvm/lib/CodeGen/RegUsageInfoCollector.cpp +++ b/llvm/lib/CodeGen/RegUsageInfoCollector.cpp @@ -81,7 +81,7 @@ FunctionPass *llvm::createRegUsageInfoCollector() { bool RegUsageInfoCollector::runOnMachineFunction(MachineFunction &MF) { MachineRegisterInfo *MRI = &MF.getRegInfo(); const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo(); - const TargetMachine &TM = MF.getTarget(); + const LLVMTargetMachine &TM = MF.getTarget(); LLVM_DEBUG(dbgs() << " -------------------- " << getPassName() << " -------------------- \n"); |