mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Use the c++ APIs.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cadf0f68e4
commit
01ccb9c9b8
@ -18,6 +18,7 @@
|
||||
#include "llvm/CodeGen/CommandFlags.h"
|
||||
#include "llvm/LTO/LTOCodeGenerator.h"
|
||||
#include "llvm/LTO/LTOModule.h"
|
||||
#include "llvm/Support/TargetSelect.h"
|
||||
|
||||
// extra command-line flags needed for LTOCodeGenerator
|
||||
static cl::opt<bool>
|
||||
@ -46,12 +47,12 @@ static bool parsedOptions = false;
|
||||
// Initialize the configured targets if they have not been initialized.
|
||||
static void lto_initialize() {
|
||||
if (!initialized) {
|
||||
LLVMInitializeAllTargetInfos();
|
||||
LLVMInitializeAllTargets();
|
||||
LLVMInitializeAllTargetMCs();
|
||||
LLVMInitializeAllAsmParsers();
|
||||
LLVMInitializeAllAsmPrinters();
|
||||
LLVMInitializeAllDisassemblers();
|
||||
InitializeAllTargetInfos();
|
||||
InitializeAllTargets();
|
||||
InitializeAllTargetMCs();
|
||||
InitializeAllAsmParsers();
|
||||
InitializeAllAsmPrinters();
|
||||
InitializeAllDisassemblers();
|
||||
initialized = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user