diff options
author | Diana Picus <diana.picus@linaro.org> | 2017-01-25 07:08:53 +0000 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2017-01-25 07:08:53 +0000 |
commit | 1d8eaf438701e5b44e56ca82de3035f2639549e0 (patch) | |
tree | 904a5efc1ef2f751ee4288d4f68a5e6edce6277f /llvm/lib/Target/ARM/ARMCallLowering.cpp | |
parent | 74a576e7d39baa249b9810f32bc529bc21eb232d (diff) | |
download | bcm5719-llvm-1d8eaf438701e5b44e56ca82de3035f2639549e0.tar.gz bcm5719-llvm-1d8eaf438701e5b44e56ca82de3035f2639549e0.zip |
[ARM] GlobalISel: Bail out on Thumb. NFC
Thumb is not supported yet, so bail out early.
llvm-svn: 293029
Diffstat (limited to 'llvm/lib/Target/ARM/ARMCallLowering.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMCallLowering.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMCallLowering.cpp b/llvm/lib/Target/ARM/ARMCallLowering.cpp index 32b823f941d..16509564800 100644 --- a/llvm/lib/Target/ARM/ARMCallLowering.cpp +++ b/llvm/lib/Target/ARM/ARMCallLowering.cpp @@ -17,6 +17,7 @@ #include "ARMBaseInstrInfo.h" #include "ARMISelLowering.h" +#include "ARMSubtarget.h" #include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h" #include "llvm/CodeGen/MachineRegisterInfo.h" @@ -174,6 +175,9 @@ bool ARMCallLowering::lowerFormalArguments(MachineIRBuilder &MIRBuilder, auto DL = MIRBuilder.getMF().getDataLayout(); auto &TLI = *getTLI<ARMTargetLowering>(); + if (TLI.getSubtarget()->isThumb()) + return false; + auto &Args = F.getArgumentList(); unsigned ArgIdx = 0; for (auto &Arg : Args) { |