HomePhabricator

Define InitLLVM to do common initialization all at once.

Authored by ruiu on Apr 13 2018, 11:26 AM.

Description

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

Details

Committed
ruiuApr 13 2018, 11:26 AM
Differential Revision
D45602: Define InitLLVM to do common initialization all at once.
Parents
rGa4e874c51651: support: add missing locale stubs for android L, M
Branches
Unknown
Tags
Unknown