[lldb-server] Use llgs namespace to avoid conflicts with Win32 API

llvm-svn: 357496
This commit is contained in:
Aaron Smith 2019-04-02 17:10:12 +00:00
parent b622809b2d
commit 41a7950cfb
1 changed files with 6 additions and 4 deletions

View File

@ -36,6 +36,7 @@ static void display_usage(const char *progname) {
int main_gdbserver(int argc, char *argv[]);
int main_platform(int argc, char *argv[]);
namespace llgs {
static void initialize() {
if (auto e = g_debugger_lifetime->Initialize(
llvm::make_unique<SystemInitializerLLGS>(), nullptr))
@ -43,6 +44,7 @@ static void initialize() {
}
static void terminate() { g_debugger_lifetime->Terminate(); }
} // namespace llgs
//----------------------------------------------------------------------
// main
@ -61,14 +63,14 @@ int main(int argc, char *argv[]) {
switch (argv[1][0]) {
case 'g':
initialize();
llgs::initialize();
main_gdbserver(argc, argv);
terminate();
llgs::terminate();
break;
case 'p':
initialize();
llgs::initialize();
main_platform(argc, argv);
terminate();
llgs::terminate();
break;
case 'v':
fprintf(stderr, "%s\n", lldb_private::GetVersion());