From 777de779565c63ee09606ab89233f28259f79f72 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Sat, 4 Mar 2017 16:42:25 +0000 Subject: Truncate thread names if they're too long. llvm-svn: 296972 --- llvm/lib/Support/Windows/Threading.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Support/Windows') diff --git a/llvm/lib/Support/Windows/Threading.inc b/llvm/lib/Support/Windows/Threading.inc index 30086544ab2..8f36f79ca43 100644 --- a/llvm/lib/Support/Windows/Threading.inc +++ b/llvm/lib/Support/Windows/Threading.inc @@ -59,6 +59,8 @@ uint64_t llvm::get_threadid() { return uint64_t(::GetCurrentThreadId()); } +constexpr uint32_t llvm::get_max_thread_name_length() { return 0; } + void llvm::set_thread_name(const Twine &Name) { #if defined(_MSC_VER) // Make sure the input is null terminated. -- cgit v1.2.3