[llvm] r229191 - Use the template method to grab the target specific	subtarget.
    Eric Christopher 
    echristo at gmail.com
       
    Fri Feb 13 16:09:46 PST 2015
    
    
  
Author: echristo
Date: Fri Feb 13 18:09:46 2015
New Revision: 229191
URL: http://llvm.org/viewvc/llvm-project?rev=229191&view=rev
Log:
Use the template method to grab the target specific subtarget.
Modified:
    llvm/trunk/lib/Target/Mips/MipsFastISel.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsFastISel.cpp?rev=229191&r1=229190&r2=229191&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsFastISel.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsFastISel.cpp Fri Feb 13 18:09:46 2015
@@ -158,8 +158,7 @@ public:
   explicit MipsFastISel(FunctionLoweringInfo &funcInfo,
                         const TargetLibraryInfo *libInfo)
       : FastISel(funcInfo, libInfo), TM(funcInfo.MF->getTarget()),
-        Subtarget(
-            &static_cast<const MipsSubtarget &>(funcInfo.MF->getSubtarget())),
+        Subtarget(&funcInfo.MF->getSubtarget<MipsSubtarget>()),
         TII(*Subtarget->getInstrInfo()), TLI(*Subtarget->getTargetLowering()) {
     MFI = funcInfo.MF->getInfo<MipsFunctionInfo>();
     Context = &funcInfo.Fn->getContext();
    
    
More information about the llvm-commits
mailing list