summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegisterUsageInfo.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2018-11-05 23:49:14 +0000
committerMatthias Braun <matze@braunis.de>2018-11-05 23:49:14 +0000
commit7a75a91b5b0e46afff5f8e0e9deb3833ce12a26a (patch)
treef5cd13ead11db685de7210cc2439860ab1596739 /llvm/lib/CodeGen/RegisterUsageInfo.cpp
parent3d849f67cbae5807f18fb2d46dfccd3aeae3c39b (diff)
downloadbcm5719-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/RegisterUsageInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/RegisterUsageInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegisterUsageInfo.cpp b/llvm/lib/CodeGen/RegisterUsageInfo.cpp
index 1b3fbc25b6e..6b9880a8913 100644
--- a/llvm/lib/CodeGen/RegisterUsageInfo.cpp
+++ b/llvm/lib/CodeGen/RegisterUsageInfo.cpp
@@ -40,7 +40,7 @@ INITIALIZE_PASS(PhysicalRegisterUsageInfo, "reg-usage-info",
char PhysicalRegisterUsageInfo::ID = 0;
-void PhysicalRegisterUsageInfo::setTargetMachine(const TargetMachine &TM) {
+void PhysicalRegisterUsageInfo::setTargetMachine(const LLVMTargetMachine &TM) {
this->TM = &TM;
}
OpenPOWER on IntegriCloud