mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 11:51:13 +00:00
Fix an oversight: for modules with no other identifying target info,
the sparc backend should be preferred when running on sparcs. llvm-svn: 39142
This commit is contained in:
parent
aa83dc9037
commit
ef484ab964
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user