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
This commit is contained in:
Bob Wilson 2009-06-22 18:01:28 +00:00
parent e64e3cf9ad
commit 75d6ffd53f

View File

@ -290,6 +290,11 @@ bool LTOCodeGenerator::assemble(const std::string& asmPath,
args.push_back("-arch"); args.push_back("-arch");
args.push_back("armv6"); 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 // add -static to assembler command line when code model requires
if ( (_assemblerPath != NULL) && (_codeModel == LTO_CODEGEN_PIC_MODEL_STATIC) ) if ( (_assemblerPath != NULL) && (_codeModel == LTO_CODEGEN_PIC_MODEL_STATIC) )
args.push_back("-static"); args.push_back("-static");