commit | 197194b6c9829b9cdc5222939dd8cb25af05b3ca | [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 | 385d75220b3266383a2a7f3c3d1467dbca4ca04b | |
parent | a4e874c516517a5e479599755734a734faefe128 [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 llvm-svn: 330046