lldb-server: rename `llgs::terminate` (NFC)
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 14 May 2019 17:07:36 +0000 (17:07 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 14 May 2019 17:07:36 +0000 (17:07 +0000)
commit1362905e8c4a8fe95dfea81a37a2ad01a95cf926
tree4f8ac72535ab56f1d149c256c98eb6537078b345
parent7c5c0c9fe59b77e628024dec48b9db1f36f41c15
lldb-server: rename `llgs::terminate` (NFC)

`terminate` overlaps with a C function on Windows:

```
D:\a\1\s\lldb\tools\lldb-server\lldb-server.cpp(45,13):  warning: 'terminate' redeclared without 'dllimport' attribute: 'dllexport' attribute added [-Winconsistent-dllimport]
static void terminate() { g_debugger_lifetime->Terminate(); }
            ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\corecrt_terminate.h(29,48):  note: previous declaration is here
    _ACRTIMP __declspec(noreturn) void __cdecl terminate() throw();
                                               ^
D:\a\1\s\lldb\tools\lldb-server\lldb-server.cpp(45,61):  warning: function declared 'noreturn' should not return [-Winvalid-noreturn]
static void terminate() { g_debugger_lifetime->Terminate(); }
                                                            ^
```

Rename the function to `terminate_debugger` to avoid the errant match.

llvm-svn: 360693
lldb/tools/lldb-server/lldb-server.cpp