summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Core.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-02 00:16:38 +0000
committerOwen Anderson <resistor@mac.com>2009-07-02 00:16:38 +0000
commitf7691d398dd2c240eb6b01fbe2bfd07ef7a923ee (patch)
tree7904ef649460fd8e1c7a1656f812fa0ab53825cb /llvm/lib/VMCore/Core.cpp
parentf4f2f14f573db5349fc7e082f79b9d9be2197fe2 (diff)
downloadbcm5719-llvm-f7691d398dd2c240eb6b01fbe2bfd07ef7a923ee.tar.gz
bcm5719-llvm-f7691d398dd2c240eb6b01fbe2bfd07ef7a923ee.zip
Add a C wrapper for accessing the global default context.
llvm-svn: 74675
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
-rw-r--r--llvm/lib/VMCore/Core.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp
index 9f92e6f2949..f7fb1bbf7df 100644
--- a/llvm/lib/VMCore/Core.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud