aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lli/lli.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-15 22:16:10 +0000
committerOwen Anderson <resistor@mac.com>2009-07-15 22:16:10 +0000
commite84b8b3f2cf731f101ad2e62ec30d846c927883e (patch)
treedb48115519235081bd14ef55df0e924996804e6d /tools/lli/lli.cpp
parent5c619184865fb803668f21ea3ae69ebb4c896e90 (diff)
downloadexternal_llvm-e84b8b3f2cf731f101ad2e62ec30d846c927883e.zip
external_llvm-e84b8b3f2cf731f101ad2e62ec30d846c927883e.tar.gz
external_llvm-e84b8b3f2cf731f101ad2e62ec30d846c927883e.tar.bz2
To simplify the upcoming context-on-type change, switch all command line tools to using the default global context for now.
This will let us to hardwire stuff to the global context in the short term while the API is sorted out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli/lli.cpp')
-rw-r--r--tools/lli/lli.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index 50711e7..788aca0 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -94,7 +94,7 @@ int main(int argc, char **argv, char * const *envp) {
sys::PrintStackTraceOnErrorSignal();
PrettyStackTraceProgram X(argc, argv);
- LLVMContext Context;
+ LLVMContext &Context = getGlobalContext();
atexit(do_shutdown); // Call llvm_shutdown() on exit.
cl::ParseCommandLineOptions(argc, argv,
"llvm interpreter & dynamic compiler\n");