mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Fix an oversight: for modules with no other identifying target info,
the sparc backend should be preferred when running on sparcs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39142 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
97b4ac8c84
commit
082ced9391
@ -54,7 +54,11 @@ unsigned SparcTargetMachine::getModuleMatchQuality(const Module &M) {
|
|||||||
M.getPointerSize() != Module::AnyPointerSize)
|
M.getPointerSize() != Module::AnyPointerSize)
|
||||||
return 0; // Match for some other target
|
return 0; // Match for some other target
|
||||||
|
|
||||||
|
#if defined(__sparc__)
|
||||||
|
return 10;
|
||||||
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SparcTargetMachine::addInstSelector(FunctionPassManager &PM, bool Fast) {
|
bool SparcTargetMachine::addInstSelector(FunctionPassManager &PM, bool Fast) {
|
||||||
|
Loading…
Reference in New Issue
Block a user