diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-01-27 07:54:39 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-01-27 07:54:39 +0000 |
| commit | 2c63549386132e0d23b1cb00b40e198584f94352 (patch) | |
| tree | 7eb1ee7c2099e745548539de3395027a67e6353b /llvm/lib/CodeGen/Passes.cpp | |
| parent | 36d927312841af04194c86ecccce3816a6773d93 (diff) | |
| download | bcm5719-llvm-2c63549386132e0d23b1cb00b40e198584f94352.tar.gz bcm5719-llvm-2c63549386132e0d23b1cb00b40e198584f94352.zip | |
Update a few calls to getSubtarget<> to either be getSubtargetImpl
when we didn't need the cast to the base class or the cached version
off of the subtarget.
llvm-svn: 227176
Diffstat (limited to 'llvm/lib/CodeGen/Passes.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/Passes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/Passes.cpp b/llvm/lib/CodeGen/Passes.cpp index 0797f2335c2..731e07686d2 100644 --- a/llvm/lib/CodeGen/Passes.cpp +++ b/llvm/lib/CodeGen/Passes.cpp @@ -249,7 +249,7 @@ TargetPassConfig::TargetPassConfig(TargetMachine *tm, PassManagerBase &pm) substitutePass(&PostRAMachineLICMID, &MachineLICMID); // Temporarily disable experimental passes. - const TargetSubtargetInfo &ST = TM->getSubtarget<TargetSubtargetInfo>(); + const TargetSubtargetInfo &ST = *TM->getSubtargetImpl(); if (!ST.useMachineScheduler()) disablePass(&MachineSchedulerID); } |

