diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-15 22:16:10 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-15 22:16:10 +0000 |
commit | 19251ec836413c98744e8ac116dfc83521f17c4b (patch) | |
tree | 88c10468a30f026569e4f4cdd3963f2dda7d49b8 /llvm/tools/llvm-db/llvm-db.cpp | |
parent | ebe66ab13b88d20ae99c78f934eb514391d62d28 (diff) | |
download | bcm5719-llvm-19251ec836413c98744e8ac116dfc83521f17c4b.tar.gz bcm5719-llvm-19251ec836413c98744e8ac116dfc83521f17c4b.zip |
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.
llvm-svn: 75846
Diffstat (limited to 'llvm/tools/llvm-db/llvm-db.cpp')
-rw-r--r-- | llvm/tools/llvm-db/llvm-db.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-db/llvm-db.cpp b/llvm/tools/llvm-db/llvm-db.cpp index 851533e12e1..8fb9b5857ef 100644 --- a/llvm/tools/llvm-db/llvm-db.cpp +++ b/llvm/tools/llvm-db/llvm-db.cpp @@ -55,7 +55,7 @@ int main(int argc, char **argv, char * const *envp) { sys::PrintStackTraceOnErrorSignal(); PrettyStackTraceProgram X(argc, argv); - LLVMContext Context; + LLVMContext &Context = getGlobalContext(); llvm_shutdown_obj Y; // Call llvm_shutdown() on exit. std::cout << "NOTE: llvm-db is known useless right now.\n"; try { |