commit | 0b9d56a30ed2735116198d18a2c85f7ecb4c405e | [log] [tgz] |
---|---|---|
author | Rui Ueyama <ruiu@google.com> | Fri Apr 13 18:26:06 2018 +0000 |
committer | Rui Ueyama <ruiu@google.com> | Fri Apr 13 18:26:06 2018 +0000 |
tree | 036b225dfdca6d7401b91fa8bec3690020a722dc | |
parent | 275d90b83cca79bb887bc053a150e87e1a46ca27 [diff] |
Define InitLLVM to do common initialization all at once. We have a few functions that virtually all command wants to run on process startup/shutdown. This patch adds InitLLVM class to do that all at once, so that we don't need to copy-n-paste boilerplate code to each llvm command's main() function. Differential Revision: https://reviews.llvm.org/D45602 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330046 91177308-0d34-0410-b5e6-96231b3b80d8