[llvm] r227400 - Small cleanup in ARMFastISel initialization.
Eric Christopher
echristo at gmail.com
Wed Jan 28 16:19:37 PST 2015
Author: echristo
Date: Wed Jan 28 18:19:37 2015
New Revision: 227400
URL: http://llvm.org/viewvc/llvm-project?rev=227400&view=rev
Log:
Small cleanup in ARMFastISel initialization.
Modified:
llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=227400&r1=227399&r2=227400&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Wed Jan 28 18:19:37 2015
@@ -93,12 +93,11 @@ class ARMFastISel final : public FastISe
explicit ARMFastISel(FunctionLoweringInfo &funcInfo,
const TargetLibraryInfo *libInfo)
: FastISel(funcInfo, libInfo),
+ Subtarget(
+ &static_cast<const ARMSubtarget &>(funcInfo.MF->getSubtarget())),
M(const_cast<Module &>(*funcInfo.Fn->getParent())),
- TM(funcInfo.MF->getTarget()),
- TII(*funcInfo.MF->getSubtarget().getInstrInfo()),
- TLI(*funcInfo.MF->getSubtarget().getTargetLowering()) {
- Subtarget =
- &static_cast<const ARMSubtarget &>(funcInfo.MF->getSubtarget());
+ TM(funcInfo.MF->getTarget()), TII(*Subtarget->getInstrInfo()),
+ TLI(*Subtarget->getTargetLowering()) {
AFI = funcInfo.MF->getInfo<ARMFunctionInfo>();
isThumb2 = AFI->isThumbFunction();
Context = &funcInfo.Fn->getContext();
More information about the llvm-commits
mailing list