diff options
author | Bob Wilson <bob.wilson@apple.com> | 2013-03-04 22:37:43 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2013-03-04 22:37:43 +0000 |
commit | 532f5a9d64212ae9dbaa19f25b223ecb4ed680ba (patch) | |
tree | 6c5e38b945cbd006b1f953c45a321485fa0b8f81 | |
parent | d2ab6d371e2bb93ced857041b9173ad50bbcbfcd (diff) |
Fix confused use of llvm::StringSwitch for armv7r architecture.
svn 170909 added support for cortex-r5 but in this case it was done
incorrectly. The last argument to StringSwitch.Cases() is the replacement
value, so by adding "cortex-r5" it changed the default cpu for armv7r to
cortex-r5 instead of cortex-r4.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176456 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Driver/ToolChain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/ToolChain.cpp b/lib/Driver/ToolChain.cpp index 751c9f805e..a7311d7620 100644 --- a/lib/Driver/ToolChain.cpp +++ b/lib/Driver/ToolChain.cpp @@ -113,7 +113,7 @@ static const char *getARMTargetCPU(const ArgList &Args, .Cases("armv7l", "armv7-l", "cortex-a8") .Cases("armv7f", "armv7-f", "cortex-a9-mp") .Cases("armv7s", "armv7-s", "swift") - .Cases("armv7r", "armv7-r", "cortex-r4", "cortex-r5") + .Cases("armv7r", "armv7-r", "cortex-r4") .Cases("armv7m", "armv7-m", "cortex-m3") .Case("ep9312", "ep9312") .Case("iwmmxt", "iwmmxt") |