[llvm] r219674 - Grab the subtarget info off of the MachineFunction rather than

Eric Christopher echristo at gmail.com
Tue Oct 14 01:44:19 PDT 2014


Author: echristo
Date: Tue Oct 14 03:44:19 2014
New Revision: 219674

URL: http://llvm.org/viewvc/llvm-project?rev=219674&view=rev
Log:
Grab the subtarget info off of the MachineFunction rather than
indirecting through the TargetMachine.

Modified:
    llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp?rev=219674&r1=219673&r2=219674&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp Tue Oct 14 03:44:19 2014
@@ -1853,7 +1853,7 @@ bool ARMPreAllocLoadStoreOpt::runOnMachi
   TD = Fn.getSubtarget().getDataLayout();
   TII = Fn.getSubtarget().getInstrInfo();
   TRI = Fn.getSubtarget().getRegisterInfo();
-  STI = &Fn.getTarget().getSubtarget<ARMSubtarget>();
+  STI = &static_cast<const ARMSubtarget &>(Fn.getSubtarget());
   MRI = &Fn.getRegInfo();
   MF  = &Fn;
 





More information about the llvm-commits mailing list