[llvm-commits] [llvm] r68237 - /llvm/branches/Apple/Dib/tools/lto/LTOCodeGenerator.cpp
Bill Wendling
isanbard at gmail.com
Wed Apr 1 12:47:27 PDT 2009
Author: void
Date: Wed Apr 1 14:47:27 2009
New Revision: 68237
URL: http://llvm.org/viewvc/llvm-project?rev=68237&view=rev
Log:
--- Merging (from foreign repository) r68229 into '.':
U tools/lto/LTOCodeGenerator.cpp
Recognize arm triplets.
Modified:
llvm/branches/Apple/Dib/tools/lto/LTOCodeGenerator.cpp
Modified: llvm/branches/Apple/Dib/tools/lto/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/tools/lto/LTOCodeGenerator.cpp?rev=68237&r1=68236&r2=68237&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/branches/Apple/Dib/tools/lto/LTOCodeGenerator.cpp Wed Apr 1 14:47:27 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