diff options
author | Renato Golin <renato.golin@linaro.org> | 2013-08-15 20:54:38 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2013-08-15 20:54:38 +0000 |
commit | 14c41370e36068ae25c871d5bd8f99f92bbb7d45 (patch) | |
tree | 8d02d7dc43432b5762163bdb04bd31cc950a0e16 /lib/Target/ARM/ARMSubtarget.cpp | |
parent | 24adc8f60f0a39e45363eef5392fe1a7e27bd12f (diff) | |
download | external_llvm-14c41370e36068ae25c871d5bd8f99f92bbb7d45.zip external_llvm-14c41370e36068ae25c871d5bd8f99f92bbb7d45.tar.gz external_llvm-14c41370e36068ae25c871d5bd8f99f92bbb7d45.tar.bz2 |
make arm-use-movt available for all ARM
Before this patch this flag is IOS specific, but is also
useful for bare project like bootloaders / kernels etc,
since movw / movt prevents simple relocation. Therefore
make this flag more commonly available.
note: this patch depends on a similiar rename in clang
Patch by Jeroen Hofstee.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188487 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.cpp')
-rw-r--r-- | lib/Target/ARM/ARMSubtarget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.cpp b/lib/Target/ARM/ARMSubtarget.cpp index a94c942..3111f5e 100644 --- a/lib/Target/ARM/ARMSubtarget.cpp +++ b/lib/Target/ARM/ARMSubtarget.cpp @@ -32,7 +32,7 @@ ReserveR9("arm-reserve-r9", cl::Hidden, cl::desc("Reserve R9, making it unavailable as GPR")); static cl::opt<bool> -DarwinUseMOVT("arm-darwin-use-movt", cl::init(true), cl::Hidden); +ArmUseMOVT("arm-use-movt", cl::init(true), cl::Hidden); static cl::opt<bool> UseFusedMulOps("arm-use-mulops", @@ -169,12 +169,12 @@ void ARMSubtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) { if (isAAPCS_ABI()) stackAlignment = 8; + UseMovt = hasV6T2Ops() && ArmUseMOVT; + if (!isTargetIOS()) { - UseMovt = hasV6T2Ops(); IsR9Reserved = ReserveR9; } else { IsR9Reserved = ReserveR9 | !HasV6Ops; - UseMovt = DarwinUseMOVT && hasV6T2Ops(); SupportsTailCall = !getTargetTriple().isOSVersionLT(5, 0); } |