summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/windows/ThisThread.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-02-25 19:52:41 +0000
committerZachary Turner <zturner@google.com>2015-02-25 19:52:41 +0000
commit49be160531053ba001f0337951572ea9de064eb9 (patch)
treea4a43bc960f558bc8d58b7fcc972d63db3a4eda1 /lldb/source/Host/windows/ThisThread.cpp
parent8f12ce082508a700c463f186da67a36cfea7d568 (diff)
downloadbcm5719-llvm-49be160531053ba001f0337951572ea9de064eb9.tar.gz
bcm5719-llvm-49be160531053ba001f0337951572ea9de064eb9.zip
Revert "Fix warnings found with clang-cl."
SWIG doesn't like enum : unsigned. Revert this until I can fix this in a way that swig likes. llvm-svn: 230531
Diffstat (limited to 'lldb/source/Host/windows/ThisThread.cpp')
-rw-r--r--lldb/source/Host/windows/ThisThread.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Host/windows/ThisThread.cpp b/lldb/source/Host/windows/ThisThread.cpp
index d5f5810b08e..9c37d7c57e7 100644
--- a/lldb/source/Host/windows/ThisThread.cpp
+++ b/lldb/source/Host/windows/ThisThread.cpp
@@ -20,6 +20,8 @@ using namespace lldb_private;
namespace
{
+static const DWORD MS_VC_EXCEPTION = 0x406D1388;
+
#pragma pack(push, 8)
struct THREADNAME_INFO
{
@@ -36,9 +38,7 @@ ThisThread::SetName(llvm::StringRef name)
{
// Other compilers don't yet support SEH, so we can only set the thread if compiling with MSVC.
// TODO(zturner): Once clang-cl supports SEH, relax this conditional.
-#if defined(_MSC_VER) && !defined(__clang__) /* clang-cl doesn't support SEH */
- static const DWORD MS_VC_EXCEPTION = 0x406D1388;
-
+#if defined(_MSC_VER)
THREADNAME_INFO info;
info.dwType = 0x1000;
info.szName = name.data();
OpenPOWER on IntegriCloud