mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Add TargetRegistry::lookupTarget.
- This is a simplified mechanism which just looks up a target based on the target triple, with a few additional flags. - Remove getClosestStaticTargetForModule, the moral equivalent is now: lookupTarget(Mod->getTargetTriple, true, false, ...); - This no longer does the fuzzy matching with target data (based on endianness and pointer width) that getClosestStaticTargetForModule was doing, but this was deemed unnecessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77111 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -330,8 +330,10 @@ bool LTOCodeGenerator::determineTarget(std::string& errMsg)
|
||||
// create target machine from info for merged modules
|
||||
Module* mergedModule = _linker.getModule();
|
||||
const Target *march =
|
||||
TargetRegistry::getClosestStaticTargetForModule(*mergedModule,
|
||||
errMsg);
|
||||
TargetRegistry::lookupTarget(mergedModule->getTargetTriple(),
|
||||
/*FallbackToHost=*/true,
|
||||
/*RequireJIT=*/false,
|
||||
errMsg);
|
||||
if ( march == NULL )
|
||||
return true;
|
||||
|
||||
|
Reference in New Issue
Block a user