summaryrefslogtreecommitdiffstats
path: root/lib/Driver
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-03-29 19:53:34 +0000
committerJim Grosbach <grosbach@apple.com>2012-03-29 19:53:34 +0000
commit6903313102c4e1ca598305850cc209b62711b1b6 (patch)
tree4a9472e15814a2f89efcad0066396c00540ebb45 /lib/Driver
parent868e985d4e2845cf19517dac932dfd013a8494b9 (diff)
ARM backend knows about cortex-m4. The front end should too.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver')
-rw-r--r--lib/Driver/ToolChain.cpp1
-rw-r--r--lib/Driver/Tools.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/Driver/ToolChain.cpp b/lib/Driver/ToolChain.cpp
index 3e7a13f18b..db4d2a8a47 100644
--- a/lib/Driver/ToolChain.cpp
+++ b/lib/Driver/ToolChain.cpp
@@ -137,6 +137,7 @@ static const char *getLLVMArchSuffixForARM(StringRef CPU) {
.Cases("arm1156t2-s", "arm1156t2f-s", "v6t2")
.Cases("cortex-a8", "cortex-a9", "v7")
.Case("cortex-m3", "v7m")
+ .Case("cortex-m4", "v7m")
.Case("cortex-m0", "v6m")
.Default("");
}
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index ff034d685d..f3faeecb47 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -484,6 +484,7 @@ static const char *getLLVMArchSuffixForARM(StringRef CPU) {
.Cases("arm1156t2-s", "arm1156t2f-s", "v6t2")
.Cases("cortex-a8", "cortex-a9", "v7")
.Case("cortex-m3", "v7m")
+ .Case("cortex-m4", "v7m")
.Case("cortex-m0", "v6m")
.Default("");
}