mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Fix LTO after the recent MC subtarget refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134930 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
af0a2e6730
commit
bf843e6974
@ -73,6 +73,7 @@ LTOCodeGenerator::LTOCodeGenerator()
|
||||
_nativeObjectFile(NULL)
|
||||
{
|
||||
InitializeAllTargets();
|
||||
InitializeAllMCSubtargetInfos();
|
||||
InitializeAllAsmPrinters();
|
||||
}
|
||||
|
||||
|
@ -135,6 +135,7 @@ LTOModule *LTOModule::makeLTOModule(MemoryBuffer *buffer,
|
||||
static bool Initialized = false;
|
||||
if (!Initialized) {
|
||||
InitializeAllTargets();
|
||||
InitializeAllMCSubtargetInfos();
|
||||
InitializeAllAsmParsers();
|
||||
Initialized = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user