aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lto
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-06-22 18:01:28 +0000
committerBob Wilson <bob.wilson@apple.com>2009-06-22 18:01:28 +0000
commit5b50a2437962c4be4dd06ed672fca9955b9399e3 (patch)
treede034184fd72376c00a30db1b9c0f4786241b862 /tools/lto
parent3c567d63e688faf9f70111311e1c1acd93465b76 (diff)
downloadexternal_llvm-5b50a2437962c4be4dd06ed672fca9955b9399e3.zip
external_llvm-5b50a2437962c4be4dd06ed672fca9955b9399e3.tar.gz
external_llvm-5b50a2437962c4be4dd06ed672fca9955b9399e3.tar.bz2
Recognize and handle ARM v7 target triples for Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r--tools/lto/LTOCodeGenerator.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp
index 11e0e55..8db573e6 100644
--- a/tools/lto/LTOCodeGenerator.cpp
+++ b/tools/lto/LTOCodeGenerator.cpp
@@ -290,6 +290,11 @@ bool LTOCodeGenerator::assemble(const std::string& asmPath,
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");