summaryrefslogtreecommitdiff
path: root/tools/llvm-dis
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
commit0d7c695c74ae6d5f68cc07378c17491915e607d3 (patch)
treedb48115519235081bd14ef55df0e924996804e6d /tools/llvm-dis
parentfd2934f190fc13b60f8e5dd9639008d721b170f8 (diff)
downloadllvm-0d7c695c74ae6d5f68cc07378c17491915e607d3.tar.gz
llvm-0d7c695c74ae6d5f68cc07378c17491915e607d3.tar.bz2
llvm-0d7c695c74ae6d5f68cc07378c17491915e607d3.tar.xz
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/llvm-dis')
-rw-r--r--tools/llvm-dis/llvm-dis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp
index 8fa00d5b03..e93d6d4e09 100644
--- a/tools/llvm-dis/llvm-dis.cpp
+++ b/tools/llvm-dis/llvm-dis.cpp
@@ -49,7 +49,7 @@ int main(int argc, char **argv) {
sys::PrintStackTraceOnErrorSignal();
PrettyStackTraceProgram X(argc, argv);
- LLVMContext Context;
+ LLVMContext &Context = getGlobalContext();
llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
try {
cl::ParseCommandLineOptions(argc, argv, "llvm .bc -> .ll disassembler\n");