diff options
author | Matthias Braun <matze@braunis.de> | 2018-11-05 23:49:13 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2018-11-05 23:49:13 +0000 |
commit | 3d849f67cbae5807f18fb2d46dfccd3aeae3c39b (patch) | |
tree | 13aea93a9d4c1fc050701454d6be0ee2435fc369 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 54d23a8eb7eac3445450bacbe7a6336197ccdbf5 (diff) | |
download | bcm5719-llvm-3d849f67cbae5807f18fb2d46dfccd3aeae3c39b.tar.gz bcm5719-llvm-3d849f67cbae5807f18fb2d46dfccd3aeae3c39b.zip |
MachineModuleInfo: Store more specific reference to LLVMTargetMachine; NFC
MachineModuleInfo can only be used in code using lib/CodeGen, hence we
can keep a more specific reference to LLVMTargetMachine rather than just
TargetMachine around.
llvm-svn: 346182
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineModuleInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index ce556903dc0..6ef8de88f8b 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp @@ -194,7 +194,7 @@ void MMIAddrLabelMapCallbackPtr::allUsesReplacedWith(Value *V2) { Map->UpdateForRAUWBlock(cast<BasicBlock>(getValPtr()), cast<BasicBlock>(V2)); } -MachineModuleInfo::MachineModuleInfo(const TargetMachine *TM) +MachineModuleInfo::MachineModuleInfo(const LLVMTargetMachine *TM) : ImmutablePass(ID), TM(*TM), Context(TM->getMCAsmInfo(), TM->getMCRegisterInfo(), TM->getObjFileLowering(), nullptr, false) { |