[llvm-commits] [llvm] r39142 - /llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp
Chris Lattner
sabre at nondot.org
Wed Jul 11 09:32:11 PDT 2007
Author: lattner
Date: Wed Jul 11 11:32:10 2007
New Revision: 39142
URL: http://llvm.org/viewvc/llvm-project?rev=39142&view=rev
Log:
Fix an oversight: for modules with no other identifying target info,
the sparc backend should be preferred when running on sparcs.
Modified:
llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp
Modified: llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp?rev=39142&r1=39141&r2=39142&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp Wed Jul 11 11:32:10 2007
@@ -54,7 +54,11 @@
M.getPointerSize() != Module::AnyPointerSize)
return 0; // Match for some other target
+#if defined(__sparc__)
+ return 10;
+#else
return 0;
+#endif
}
bool SparcTargetMachine::addInstSelector(FunctionPassManager &PM, bool Fast) {
More information about the llvm-commits
mailing list