[llvm-commits] [llvm] r58731 - /llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Devang Patel
dpatel at apple.com
Tue Nov 4 15:13:50 PST 2008
Author: dpatel
Date: Tue Nov 4 17:13:50 2008
New Revision: 58731
URL: http://llvm.org/viewvc/llvm-project?rev=58731&view=rev
Log:
On darwin, 32-bit x86 target is i386-apple-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=58731&r1=58730&r2=58731&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto/LTOCodeGenerator.cpp Tue Nov 4 17:13:50 2008
@@ -224,7 +224,7 @@
std::string targetTriple = _linker.getModule()->getTargetTriple();
args.push_back(gcc.c_str());
if ( targetTriple.find("darwin") != targetTriple.size() ) {
- if (strncmp(targetTriple.c_str(), "i686-apple-", 11) == 0) {
+ if (strncmp(targetTriple.c_str(), "i386-apple-", 11) == 0) {
args.push_back("-arch");
args.push_back("i386");
}
More information about the llvm-commits
mailing list