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 | 0d7c695c74ae6d5f68cc07378c17491915e607d3 (patch) | |
tree | db48115519235081bd14ef55df0e924996804e6d /tools/llvm-nm | |
parent | fd2934f190fc13b60f8e5dd9639008d721b170f8 (diff) | |
download | external_llvm-0d7c695c74ae6d5f68cc07378c17491915e607d3.zip external_llvm-0d7c695c74ae6d5f68cc07378c17491915e607d3.tar.gz external_llvm-0d7c695c74ae6d5f68cc07378c17491915e607d3.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/llvm-nm')
-rw-r--r-- | tools/llvm-nm/llvm-nm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp index 5646835..a71ad2b 100644 --- a/tools/llvm-nm/llvm-nm.cpp +++ b/tools/llvm-nm/llvm-nm.cpp @@ -134,7 +134,7 @@ static void DumpSymbolNamesFromModule(Module *M) { } static void DumpSymbolNamesFromFile(std::string &Filename) { - LLVMContext Context; + LLVMContext &Context = getGlobalContext(); std::string ErrorMessage; sys::Path aPath(Filename); // Note: Currently we do not support reading an archive from stdin. |