summaryrefslogtreecommitdiff
path: root/lib/VMCore
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-10-07 17:55:47 +0000
committerOwen Anderson <resistor@mac.com>2010-10-07 17:55:47 +0000
commit1a3d23362168ae6d8e07efd547a92cc36738a789 (patch)
treec51c1f2450e0c73fa949adceb67222e2a6cce049 /lib/VMCore
parent745c872bb5a81edafd1c279267bc89e96b7c8d1e (diff)
downloadllvm-1a3d23362168ae6d8e07efd547a92cc36738a789.tar.gz
llvm-1a3d23362168ae6d8e07efd547a92cc36738a789.tar.bz2
llvm-1a3d23362168ae6d8e07efd547a92cc36738a789.tar.xz
Next step on the getting-rid-of-static-ctors train: begin adding per-library
initialization functions that initialize the set of passes implemented in that library. Add C bindings for these functions as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Core.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp
index 7a1aa29b75..2b1469341a 100644
--- a/lib/VMCore/Core.cpp
+++ b/lib/VMCore/Core.cpp
@@ -2220,6 +2220,11 @@ void LLVMDisposeMemoryBuffer(LLVMMemoryBufferRef MemBuf) {
delete unwrap(MemBuf);
}
+/*===-- Pass Registry -----------------------------------------------------===*/
+
+LLVMPassRegistryRef LLVMGetGlobalPassRegistry(void) {
+ return wrap(PassRegistry::getPassRegistry());
+}
/*===-- Pass Manager ------------------------------------------------------===*/