[PATCH] D45602: Define InitLLVM to do common initialization all at once.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 12 16:34:49 PDT 2018


ruiu created this revision.
ruiu added reviewers: stella.stamenova, asmith, eli.friedman.
Herald added subscribers: hiraditya, mgorny.

We have a few functions that virtually all command wants to run on
process startup/shutdown. This patch adds InitLLVM class to do them
all at once, so that we don't copy-n-paste boilerplate code to main()
function of each llvm utility command.


https://reviews.llvm.org/D45602

Files:
  lld/tools/lld/lld.cpp
  llvm/include/llvm/Support/InitLLVM.h
  llvm/lib/Support/CMakeLists.txt
  llvm/lib/Support/InitLLVM.cpp
  llvm/tools/llvm-cvtres/llvm-cvtres.cpp
  llvm/tools/llvm-mt/llvm-mt.cpp
  llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
  llvm/tools/llvm-rc/llvm-rc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45602.142298.patch
Type: text/x-patch
Size: 9258 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180412/de26e744/attachment.bin>


More information about the llvm-commits mailing list