[llvm-commits] [llvm] r68229 - /llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Evan Cheng
evan.cheng at apple.com
Wed Apr 1 11:54:59 PDT 2009
Author: evancheng
Date: Wed Apr 1 13:54:56 2009
New Revision: 68229
URL: http://llvm.org/viewvc/llvm-project?rev=68229&view=rev
Log:
Recognize arm triplets.
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=68229&r1=68228&r2=68229&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto/LTOCodeGenerator.cpp Wed Apr 1 13:54:56 2009
@@ -240,6 +240,27 @@
args.push_back("-arch");
args.push_back("ppc64");
}
+ else if (strncmp(targetTriple.c_str(), "arm-apple-", 10) == 0) {
+ args.push_back("-arch");
+ args.push_back("arm");
+ }
+ else if ((strncmp(targetTriple.c_str(), "armv4t-apple-", 13) == 0) ||
+ (strncmp(targetTriple.c_str(), "thumbv4t-apple-", 15) == 0)) {
+ args.push_back("-arch");
+ args.push_back("armv4t");
+ }
+ else if ((strncmp(targetTriple.c_str(), "armv5-apple-", 12) == 0) ||
+ (strncmp(targetTriple.c_str(), "armv5e-apple-", 13) == 0) ||
+ (strncmp(targetTriple.c_str(), "thumbv5-apple-", 14) == 0) ||
+ (strncmp(targetTriple.c_str(), "thumbv5e-apple-", 15) == 0)) {
+ args.push_back("-arch");
+ args.push_back("armv5");
+ }
+ else if ((strncmp(targetTriple.c_str(), "armv6-apple-", 12) == 0) ||
+ (strncmp(targetTriple.c_str(), "thumbv6-apple-", 14) == 0)) {
+ args.push_back("-arch");
+ args.push_back("armv6");
+ }
}
args.push_back("-c");
args.push_back("-x");
More information about the llvm-commits
mailing list