]> granicus.if.org Git - clang/commitdiff
ARM backend knows about cortex-m4. The front end should too.
authorJim Grosbach <grosbach@apple.com>
Thu, 29 Mar 2012 19:53:34 +0000 (19:53 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 29 Mar 2012 19:53:34 +0000 (19:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153678 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp
lib/Driver/ToolChain.cpp
lib/Driver/Tools.cpp

index f05b9c105aa5d5693b49bddddc088c32b47c308e..eacdf5e3e1794d1cf800f189f0ca8f7e40e022ea 100644 (file)
@@ -2791,6 +2791,7 @@ public:
       .Cases("arm1156t2-s", "arm1156t2f-s", "6T2")
       .Cases("cortex-a8", "cortex-a9", "7A")
       .Case("cortex-m3", "7M")
+      .Case("cortex-m4", "7M")
       .Case("cortex-m0", "6M")
       .Default(0);
   }
index 3e7a13f18b2b77a1929de6485eff2a8835cc29c4..db4d2a8a47b5248040fc0655993aabb05006e78a 100644 (file)
@@ -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("");
 }
index ff034d685ded66d5843b13796e57f15f8a2a9443..f3faeecb474f6ee371508a4ea0517191983e0747 100644 (file)
@@ -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("");
 }