summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMSubtarget.cpp
diff options
context:
space:
mode:
authorTilmann Scheller <tilmann.scheller@googlemail.com>2013-09-02 15:48:17 +0000
committerTilmann Scheller <tilmann.scheller@googlemail.com>2013-09-02 15:48:17 +0000
commit5bed440eb13b4104b64fa9c557954f335aac2aab (patch)
tree233d4045db0b73af1c63731e6abc736dc9426a70 /lib/Target/ARM/ARMSubtarget.cpp
parent024e76b69bc46a20e96eba22f2655d249c495d00 (diff)
downloadllvm-5bed440eb13b4104b64fa9c557954f335aac2aab.tar.gz
llvm-5bed440eb13b4104b64fa9c557954f335aac2aab.tar.bz2
llvm-5bed440eb13b4104b64fa9c557954f335aac2aab.tar.xz
Revert 189756 for now, it doesn't match what rdar://14871821 really wants.
What we really want is to enable Swift by default for *v7s triples (and there already seems to be some logic which attempts to do that). In that case the iOS version doesn't matter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189763 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.cpp')
-rw-r--r--lib/Target/ARM/ARMSubtarget.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.cpp b/lib/Target/ARM/ARMSubtarget.cpp
index a8e62e5a55..3111f5e385 100644
--- a/lib/Target/ARM/ARMSubtarget.cpp
+++ b/lib/Target/ARM/ARMSubtarget.cpp
@@ -133,13 +133,8 @@ void ARMSubtarget::resetSubtargetFeatures(const MachineFunction *MF) {
}
void ARMSubtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) {
- if (CPUString.empty()) {
- if (isTargetIOS() && !getTargetTriple().isOSVersionLT(6))
- // Default to Swift for iOS 6 or later versions.
- CPUString = "swift";
- else
- CPUString = "generic";
- }
+ if (CPUString.empty())
+ CPUString = "generic";
// Insert the architecture feature derived from the target triple into the
// feature string. This is important for setting features that are implied