diff options
author | Zachary Turner <zturner@google.com> | 2017-03-04 16:42:25 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-03-04 16:42:25 +0000 |
commit | 777de779565c63ee09606ab89233f28259f79f72 (patch) | |
tree | 9a1a53f53e1de97ba53eb45767c7b64bea8529f3 /llvm/lib/Support/Windows | |
parent | f0236fd49009d34c814ab30348ce6278c51056a7 (diff) | |
download | bcm5719-llvm-777de779565c63ee09606ab89233f28259f79f72.tar.gz bcm5719-llvm-777de779565c63ee09606ab89233f28259f79f72.zip |
Truncate thread names if they're too long.
llvm-svn: 296972
Diffstat (limited to 'llvm/lib/Support/Windows')
-rw-r--r-- | llvm/lib/Support/Windows/Threading.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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. |