From: Eric Christopher Date: Thu, 29 Jan 2015 00:19:37 +0000 (+0000) Subject: Small cleanup in ARMFastISel initialization. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=92185fdb9f7d5e717a6eb6cf83328001e8dbc3fa;p=oota-llvm.git Small cleanup in ARMFastISel initialization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227400 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index dcc0b9847f8..375d3944b9f 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -93,12 +93,11 @@ class ARMFastISel final : public FastISel { explicit ARMFastISel(FunctionLoweringInfo &funcInfo, const TargetLibraryInfo *libInfo) : FastISel(funcInfo, libInfo), + Subtarget( + &static_cast(funcInfo.MF->getSubtarget())), M(const_cast(*funcInfo.Fn->getParent())), - TM(funcInfo.MF->getTarget()), - TII(*funcInfo.MF->getSubtarget().getInstrInfo()), - TLI(*funcInfo.MF->getSubtarget().getTargetLowering()) { - Subtarget = - &static_cast(funcInfo.MF->getSubtarget()); + TM(funcInfo.MF->getTarget()), TII(*Subtarget->getInstrInfo()), + TLI(*Subtarget->getTargetLowering()) { AFI = funcInfo.MF->getInfo(); isThumb2 = AFI->isThumbFunction(); Context = &funcInfo.Fn->getContext();