lli.cpp: Appease some builders. There might be ownership issues between LLVMContext and ExecutionEngine. Investigating.
llvm-svn: 266441
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp
index 581a11b..0f30a4a 100644
--- a/llvm/tools/lli/lli.cpp
+++ b/llvm/tools/lli/lli.cpp
@@ -312,6 +312,7 @@
}
};
+static LLVMContext Context;
static ExecutionEngine *EE = nullptr;
static LLIObjectCache *CacheManager = nullptr;
@@ -385,7 +386,6 @@
sys::PrintStackTraceOnErrorSignal();
PrettyStackTraceProgram X(argc, argv);
- LLVMContext Context;
atexit(do_shutdown); // Call llvm_shutdown() on exit.
// If we have a native target, initialize it to ensure it is linked in and