diff options
author | Nico Weber <thakis@chromium.org> | 2019-11-25 21:06:56 -0500 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2019-11-25 21:06:56 -0500 |
commit | 6f773205cd05e47912096d7c4091f03c28255ab2 (patch) | |
tree | 1703a14471a6d988a8a997e98b760a651b264310 /clang-tools-extra/clang-query | |
parent | 3f76260dc0674cc0acb25f550a0f0c594cf537ea (diff) | |
download | llvm-6f773205cd05e47912096d7c4091f03c28255ab2.zip llvm-6f773205cd05e47912096d7c4091f03c28255ab2.tar.gz llvm-6f773205cd05e47912096d7c4091f03c28255ab2.tar.bz2 |
Revert "Use InitLLVM to setup a pretty stack printer"
This reverts commit 3f76260dc0674cc0acb25f550a0f0c594cf537ea.
Breaks at least these tests on Windows:
Clang :: Driver/clang-offload-bundler.c
Clang :: Driver/clang-offload-wrapper.c
Diffstat (limited to 'clang-tools-extra/clang-query')
-rw-r--r-- | clang-tools-extra/clang-query/tool/ClangQuery.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-query/tool/ClangQuery.cpp b/clang-tools-extra/clang-query/tool/ClangQuery.cpp index 56a1e25..80e1c60 100644 --- a/clang-tools-extra/clang-query/tool/ClangQuery.cpp +++ b/clang-tools-extra/clang-query/tool/ClangQuery.cpp @@ -33,7 +33,6 @@ #include "clang/Tooling/Tooling.h" #include "llvm/LineEditor/LineEditor.h" #include "llvm/Support/CommandLine.h" -#include "llvm/Support/InitLLVM.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Signals.h" #include <fstream> @@ -82,7 +81,7 @@ bool runCommandsInFile(const char *ExeName, std::string const &FileName, } int main(int argc, const char **argv) { - llvm::InitLLVM X(argc, argv); + llvm::sys::PrintStackTraceOnErrorSignal(argv[0]); CommonOptionsParser OptionsParser(argc, argv, ClangQueryCategory); |