diff options
| author | Owen Anderson <resistor@mac.com> | 2009-07-02 00:16:38 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-07-02 00:16:38 +0000 |
| commit | dc90e01ec80100bdba5fa23316a798eff0a9cd03 (patch) | |
| tree | 2a61d91e427467d69af9f736d7e0d3b80b8d4560 /lib/VMCore | |
| parent | 25cb6d164db22af4761e5c12359fb10b67d00642 (diff) | |
| download | external_llvm-dc90e01ec80100bdba5fa23316a798eff0a9cd03.zip external_llvm-dc90e01ec80100bdba5fa23316a798eff0a9cd03.tar.gz external_llvm-dc90e01ec80100bdba5fa23316a798eff0a9cd03.tar.bz2 | |
Add a C wrapper for accessing the global default context.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
| -rw-r--r-- | lib/VMCore/Core.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index 9f92e6f..f7fb1bb 100644 --- a/lib/VMCore/Core.cpp +++ b/lib/VMCore/Core.cpp @@ -45,6 +45,10 @@ LLVMContextRef LLVMContextCreate() { return wrap(new LLVMContext()); } +LLVMContextRef LLVMGetGlobalContext() { + return wrap(&getGlobalContext()); +} + void LLVMContextDispose(LLVMContextRef C) { delete unwrap(C); } |
