mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Add initialization routines for VMCore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115963 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a71b4ba3c8
commit
b8a1ccfc4b
@ -22,6 +22,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void LLVMInitializeCore(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeTransformUtils(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeScalarOpts(LLVMPassRegistryRef R);
|
||||
void LLVMInitializeIPO(LLVMPassRegistryRef R);
|
||||
|
@ -19,6 +19,10 @@ namespace llvm {
|
||||
|
||||
class PassRegistry;
|
||||
|
||||
/// initializeCore - Initialize all passes linked into the
|
||||
/// TransformUtils library.
|
||||
void initializeCore(PassRegistry&);
|
||||
|
||||
/// initializeTransformUtils - Initialize all passes linked into the
|
||||
/// TransformUtils library.
|
||||
void initializeTransformUtils(PassRegistry&);
|
||||
|
@ -7,8 +7,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This file implements the C bindings for libLLVMCore.a, which implements
|
||||
// the LLVM intermediate representation.
|
||||
// This file implements the common infrastructure (including the C bindings)
|
||||
// for libLLVMCore.a, which implements the LLVM intermediate representation.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
@ -34,6 +34,18 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
void llvm::initializeCore(PassRegistry &Registry) {
|
||||
initializeDominatorTreePass(Registry);
|
||||
initializeDominanceFrontierPass(Registry);
|
||||
initializePrintModulePassPass(Registry);
|
||||
initializePrintFunctionPassPass(Registry);
|
||||
initializeVerifierPass(Registry);
|
||||
initializePreVerifierPass(Registry);
|
||||
}
|
||||
|
||||
void LLVMInitializeCore(LLVMPassRegistryRef R) {
|
||||
initializeCore(*unwrap(R));
|
||||
}
|
||||
|
||||
/*===-- Error handling ----------------------------------------------------===*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user