diff options
Diffstat (limited to 'contrib/llvm-project/lldb/source/Host/common/Host.cpp')
| -rw-r--r-- | contrib/llvm-project/lldb/source/Host/common/Host.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/contrib/llvm-project/lldb/source/Host/common/Host.cpp b/contrib/llvm-project/lldb/source/Host/common/Host.cpp index 49eac0b0fa7b..f4cec97f5af6 100644 --- a/contrib/llvm-project/lldb/source/Host/common/Host.cpp +++ b/contrib/llvm-project/lldb/source/Host/common/Host.cpp @@ -133,11 +133,7 @@ private: #endif // __linux__ #ifdef __linux__ -#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)) -static __thread volatile sig_atomic_t g_usr1_called; -#else static thread_local volatile sig_atomic_t g_usr1_called; -#endif static void SigUsr1Handler(int) { g_usr1_called = 1; } #endif // __linux__ @@ -558,7 +554,7 @@ bool Host::IsInteractiveGraphicSession() { return false; } std::unique_ptr<Connection> Host::CreateDefaultConnection(llvm::StringRef url) { #if defined(_WIN32) - if (url.startswith("file://")) + if (url.starts_with("file://")) return std::unique_ptr<Connection>(new ConnectionGenericFile()); #endif return std::unique_ptr<Connection>(new ConnectionFileDescriptor()); |
