summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMSubtarget.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2012-04-26 01:13:36 +0000
committerEvan Cheng <evan.cheng@apple.com>2012-04-26 01:13:36 +0000
commite67a4163f5d2ad8e42a3aa0ccdaa27d85f6d5be4 (patch)
treeb81c2342c19d28721e59e4c0d1416293227a4ec5 /lib/Target/ARM/ARMSubtarget.cpp
parent4866363304bdde4ad6204b1aa312395c6cc8221e (diff)
downloadllvm-e67a4163f5d2ad8e42a3aa0ccdaa27d85f6d5be4.tar.gz
llvm-e67a4163f5d2ad8e42a3aa0ccdaa27d85f6d5be4.tar.bz2
llvm-e67a4163f5d2ad8e42a3aa0ccdaa27d85f6d5be4.tar.xz
If triple is armv7 / thumbv7 and a CPU is specified, do not automatically assume
the feature set of v7a. This comes about if the user specifies something like -arch armv7 -mcpu=cortex-m3. We shouldn't be generating instructions such as uxtab in this case. rdar://11318438 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155601 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.cpp')
-rw-r--r--lib/Target/ARM/ARMSubtarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.cpp b/lib/Target/ARM/ARMSubtarget.cpp
index 5be0d2b819..25e611bee4 100644
--- a/lib/Target/ARM/ARMSubtarget.cpp
+++ b/lib/Target/ARM/ARMSubtarget.cpp
@@ -83,7 +83,7 @@ ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &CPU,
// Insert the architecture feature derived from the target triple into the
// feature string. This is important for setting features that are implied
// based on the architecture version.
- std::string ArchFS = ARM_MC::ParseARMTriple(TT);
+ std::string ArchFS = ARM_MC::ParseARMTriple(TT, CPUString);
if (!FS.empty()) {
if (!ArchFS.empty())
ArchFS = ArchFS + "," + FS;