[llvm-commits] [patch] Adding armv7 support to driver driver

David Goodwin david_goodwin at apple.com
Thu Jul 9 12:44:42 PDT 2009


Is this all I need to do? It seems to work for some simple tests.

Index: driverdriver.c
===================================================================
--- driverdriver.c	(revision 75150)
+++ driverdriver.c	(working copy)
@@ -128,6 +128,7 @@
    {"armv5", "arm"},
    {"xscale", "arm"},
    {"armv6", "arm"},
+  {"armv7", "arm"},
    {NULL, NULL}
  };

@@ -781,6 +782,8 @@
      current_argv[arch_index] = "-march=xscale";
    else if (!strcmp (arches[index], "armv6"))
      current_argv[arch_index] = "-march=armv6k";
+  else if (!strcmp (arches[index], "armv7"))
+    current_argv[arch_index] = "-march=armv7-a";
    else
      count = 0;




More information about the llvm-commits mailing list