[Support] Use InitLLVM in llvm-stress, sancov and TableGen
authorAnirudh Prasad <anirudh.prasad@ibm.com>
Tue, 28 Jul 2020 10:40:47 +0000 (06:40 -0400)
committerKai Nacke <kai@redstar.de>
Tue, 28 Jul 2020 11:50:45 +0000 (07:50 -0400)
commitd3557ecede8e72b60df6a6d933d6c6ec16c48154
treec1f8b40f6aadc13bde7feeb4179d930d7bb2ff60
parent0f62a53db64a943972e51d3d58610595d22779fd
[Support] Use InitLLVM in llvm-stress, sancov and TableGen

This patch refactors the llvm tools namely, llvm-stress and sancov,
as well as the llvm TableGen utility, to use the new InitLLVM
interface which encapsulates PrettyStackTrace.

This is from https://reviews.llvm.org/D70702, but only for LLVM.

Reviewed-by: Kai
Differential Revision: https://reviews.llvm.org/D83484
llvm/tools/llvm-stress/llvm-stress.cpp
llvm/tools/sancov/sancov.cpp
llvm/utils/TableGen/TableGen.cpp