projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix an oversight: for modules with no other identifying target info,
[oota-llvm.git]
/
lib
/
Target
/
Sparc
/
SparcTargetMachine.cpp
diff --git
a/lib/Target/Sparc/SparcTargetMachine.cpp
b/lib/Target/Sparc/SparcTargetMachine.cpp
index b67c3009cf8bf1163595f32efd2946b51990a37f..e0206d809168e05a6234424591bf1d81ee72abb3 100644
(file)
--- a/
lib/Target/Sparc/SparcTargetMachine.cpp
+++ b/
lib/Target/Sparc/SparcTargetMachine.cpp
@@
-54,7
+54,11
@@
unsigned SparcTargetMachine::getModuleMatchQuality(const Module &M) {
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) {