diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-14 21:59:18 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-14 21:59:18 +0000 |
commit | dc4c095d510a80ab7571d79b39a2e5564a402da5 (patch) | |
tree | 9b4ffb8a7630534aa9da5c43e2108dc50732b005 /llvm/lib/IR/LLVMContext.cpp | |
parent | 03b42e41bf4bdd9ab05ea4c6905bae5d19971960 (diff) | |
download | llvm-dc4c095d510a80ab7571d79b39a2e5564a402da5.zip llvm-dc4c095d510a80ab7571d79b39a2e5564a402da5.tar.gz llvm-dc4c095d510a80ab7571d79b39a2e5564a402da5.tar.bz2 |
Nuke getGlobalContext() from LLVM (but the C API)
The only use for getGlobalContext() is in the C API.
Let's just move the static global here and nuke the C++ API.
Differential Revision: http://reviews.llvm.org/D19094
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 266380
Diffstat (limited to 'llvm/lib/IR/LLVMContext.cpp')
-rw-r--r-- | llvm/lib/IR/LLVMContext.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/IR/LLVMContext.cpp b/llvm/lib/IR/LLVMContext.cpp index 673a8c1..0e8d3e8 100644 --- a/llvm/lib/IR/LLVMContext.cpp +++ b/llvm/lib/IR/LLVMContext.cpp @@ -25,12 +25,6 @@ #include <cctype> using namespace llvm; -static ManagedStatic<LLVMContext> GlobalContext; - -LLVMContext& llvm::getGlobalContext() { - return *GlobalContext; -} - LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { // Create the fixed metadata kinds. This is done in the same order as the // MD_* enum values so that they correspond. |