[all-commits] [llvm/llvm-project] 3f7626: Use InitLLVM to setup a pretty stack printer

Rui Ueyama via All-commits all-commits at lists.llvm.org
Mon Nov 25 17:56:29 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f76260dc0674cc0acb25f550a0f0c594cf537ea
      https://github.com/llvm/llvm-project/commit/3f76260dc0674cc0acb25f550a0f0c594cf537ea
  Author: Rui Ueyama <ruiu at google.com>
  Date:   2019-11-26 (Tue, 26 Nov 2019)

  Changed paths:
    M clang-tools-extra/clang-change-namespace/tool/ClangChangeNamespace.cpp
    M clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
    M clang-tools-extra/clang-move/tool/ClangMove.cpp
    M clang-tools-extra/clang-query/tool/ClangQuery.cpp
    M clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
    M clang-tools-extra/clangd/index/dex/dexp/Dexp.cpp
    M clang-tools-extra/clangd/indexer/IndexerMain.cpp
    M clang-tools-extra/clangd/tool/ClangdMain.cpp
    M clang-tools-extra/tool-template/ToolTemplate.cpp
    M clang/tools/arcmt-test/arcmt-test.cpp
    M clang/tools/c-index-test/core_main.cpp
    M clang/tools/clang-check/ClangCheck.cpp
    M clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp
    M clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
    M clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
    M clang/tools/clang-refactor/ClangRefactor.cpp
    M clang/utils/TableGen/TableGen.cpp
    M llvm/utils/KillTheDoctor/KillTheDoctor.cpp
    M llvm/utils/TableGen/TableGen.cpp

  Log Message:
  -----------
  Use InitLLVM to setup a pretty stack printer

InitLLVM does not only save a few lines from main() but also makes the
commands do the right thing for multibyte character pathnames on
Windows (i.e. canonicalize argv's to UTF-8) because of the code we
have in this file:

https://github.com/llvm/llvm-project/blob/master/llvm/lib/Support/InitLLVM.cpp#L32

For many LLVM commands, we already have calls of InitLLVM, but there
are still remainings.

Differential Revision: https://reviews.llvm.org/D70702




More information about the All-commits mailing list