mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Use the c++ APIs.
No functionality change. llvm-svn: 211294
This commit is contained in:
parent
0ba54d3fbf
commit
effced1056
@ -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