From: Eric Christopher Date: Sat, 14 Feb 2015 00:09:46 +0000 (+0000) Subject: Use the template method to grab the target specific subtarget. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c21d153388e3c4fa87b5080e4372ec6b3a28e806;p=oota-llvm.git Use the template method to grab the target specific subtarget. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229191 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/MipsFastISel.cpp b/lib/Target/Mips/MipsFastISel.cpp index 112e5663e75..34d46f9b0ed 100644 --- a/lib/Target/Mips/MipsFastISel.cpp +++ b/lib/Target/Mips/MipsFastISel.cpp @@ -158,8 +158,7 @@ public: explicit MipsFastISel(FunctionLoweringInfo &funcInfo, const TargetLibraryInfo *libInfo) : FastISel(funcInfo, libInfo), TM(funcInfo.MF->getTarget()), - Subtarget( - &static_cast(funcInfo.MF->getSubtarget())), + Subtarget(&funcInfo.MF->getSubtarget()), TII(*Subtarget->getInstrInfo()), TLI(*Subtarget->getTargetLowering()) { MFI = funcInfo.MF->getInfo(); Context = &funcInfo.Fn->getContext();