summaryrefslogtreecommitdiff
path: root/include/llvm/LLVMContext.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-30 23:39:59 +0000
committerOwen Anderson <resistor@mac.com>2009-06-30 23:39:59 +0000
commitdb47ed0925ce97f3134189c96ebc35b2cdae1ce3 (patch)
treeccc254ed7e9375ffcf8e80cea2ccd16e7863c83a /include/llvm/LLVMContext.h
parentd9627e11bfd5e120e6430597bb72fe3c64341e2c (diff)
downloadllvm-db47ed0925ce97f3134189c96ebc35b2cdae1ce3.tar.gz
llvm-db47ed0925ce97f3134189c96ebc35b2cdae1ce3.tar.bz2
llvm-db47ed0925ce97f3134189c96ebc35b2cdae1ce3.tar.xz
Add a global context, for easing backwards compatibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/LLVMContext.h')
-rw-r--r--include/llvm/LLVMContext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h
index 01c64a81e0..1d95502bcd 100644
--- a/include/llvm/LLVMContext.h
+++ b/include/llvm/LLVMContext.h
@@ -197,6 +197,9 @@ public:
VectorType* getVectorTypeTruncatedElement(const VectorType* VTy);
};
+/// FOR BACKWARDS COMPATIBILITY - Returns a global context.
+LLVMContext* getGlobalContext();
+
}
#endif