[llvm-commits] [llvm] r73889 - /llvm/trunk/tools/lto/LTOCodeGenerator.cpp

Bob Wilson bob.wilson at apple.com
Mon Jun 22 11:01:44 PDT 2009


Author: bwilson
Date: Mon Jun 22 13:01:28 2009
New Revision: 73889

URL: http://llvm.org/viewvc/llvm-project?rev=73889&view=rev
Log:
Recognize and handle ARM v7 target triples for Darwin.

Modified:
    llvm/trunk/tools/lto/LTOCodeGenerator.cpp

Modified: llvm/trunk/tools/lto/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOCodeGenerator.cpp?rev=73889&r1=73888&r2=73889&view=diff

==============================================================================
--- llvm/trunk/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto/LTOCodeGenerator.cpp Mon Jun 22 13:01:28 2009
@@ -290,6 +290,11 @@
             args.push_back("-arch");
             args.push_back("armv6");
         }
+        else if ((strncmp(targetTriple.c_str(), "armv7-apple-", 12) == 0) ||
+                 (strncmp(targetTriple.c_str(), "thumbv7-apple-", 14) == 0)) {
+            args.push_back("-arch");
+            args.push_back("armv7");
+        }
         // add -static to assembler command line when code model requires
         if ( (_assemblerPath != NULL) && (_codeModel == LTO_CODEGEN_PIC_MODEL_STATIC) )
             args.push_back("-static");





More information about the llvm-commits mailing list