summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-29 00:19:37 +0000
committerEric Christopher <echristo@gmail.com>2015-01-29 00:19:37 +0000
commitc125e12261ec4d1e86106d6b0eb5c8c5a91c543d (patch)
tree5a3a7468b0b3f04afcdb96ab21de0ba508c1c984 /llvm/lib
parent1b21f0090488d6d55f8fc0f42f9f35adf3a47209 (diff)
downloadbcm5719-llvm-c125e12261ec4d1e86106d6b0eb5c8c5a91c543d.tar.gz
bcm5719-llvm-c125e12261ec4d1e86106d6b0eb5c8c5a91c543d.zip
Small cleanup in ARMFastISel initialization.
llvm-svn: 227400
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index dcc0b9847f8..375d3944b9f 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/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<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();
OpenPOWER on IntegriCloud