summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsFastISel.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-29 23:27:45 +0000
committerEric Christopher <echristo@gmail.com>2015-01-29 23:27:45 +0000
commitd86af63a462e99aad62906f7dbac8e608882cc1a (patch)
tree29383c54fba5173e6e116f5f1a28735d9454701f /llvm/lib/Target/Mips/MipsFastISel.cpp
parent96e72c6ab168914d2323e15579a2593edb8b6515 (diff)
downloadbcm5719-llvm-d86af63a462e99aad62906f7dbac8e608882cc1a.tar.gz
bcm5719-llvm-d86af63a462e99aad62906f7dbac8e608882cc1a.zip
Get rid of a few calls through the subtarget to get the ABI
that's actually sitting on the target machine. llvm-svn: 227513
Diffstat (limited to 'llvm/lib/Target/Mips/MipsFastISel.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsFastISel.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/MipsFastISel.cpp b/llvm/lib/Target/Mips/MipsFastISel.cpp
index edcaf5229ef..7c53095f03c 100644
--- a/llvm/lib/Target/Mips/MipsFastISel.cpp
+++ b/llvm/lib/Target/Mips/MipsFastISel.cpp
@@ -162,9 +162,10 @@ public:
TII(*Subtarget->getInstrInfo()), TLI(*Subtarget->getTargetLowering()) {
MFI = funcInfo.MF->getInfo<MipsFunctionInfo>();
Context = &funcInfo.Fn->getContext();
- TargetSupported = ((TM.getRelocationModel() == Reloc::PIC_) &&
- ((Subtarget->hasMips32r2() || Subtarget->hasMips32()) &&
- (Subtarget->isABI_O32())));
+ TargetSupported =
+ ((TM.getRelocationModel() == Reloc::PIC_) &&
+ ((Subtarget->hasMips32r2() || Subtarget->hasMips32()) &&
+ (static_cast<const MipsTargetMachine &>(TM).getABI().IsO32())));
UnsupportedFPMode = Subtarget->isFP64bit();
}
OpenPOWER on IntegriCloud