diff options
author | Owen Anderson <resistor@mac.com> | 2010-10-07 19:51:21 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-10-07 19:51:21 +0000 |
commit | 44621e430628ed78fac3aa744de9d8c58f2f64a9 (patch) | |
tree | 37d3c688e30abd11cf5151ca91cdff976b7a0f29 /llvm/lib/VMCore/Core.cpp | |
parent | 6c7049903090c3e20a598867cb639691c0394958 (diff) | |
download | bcm5719-llvm-44621e430628ed78fac3aa744de9d8c58f2f64a9.tar.gz bcm5719-llvm-44621e430628ed78fac3aa744de9d8c58f2f64a9.zip |
Add initialization routines for VMCore.
llvm-svn: 115963
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
-rw-r--r-- | llvm/lib/VMCore/Core.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index 2b1469341af..c5940d3423f 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/lib/VMCore/Core.cpp @@ -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 ----------------------------------------------------===*/ |