forked from OSchip/llvm-project
parent
6241c2a6c1
commit
75464e174a
|
@ -113,6 +113,7 @@ void llvm::set_thread_name(const Twine &Name) {
|
||||||
// Make sure the input is null terminated.
|
// Make sure the input is null terminated.
|
||||||
SmallString<64> Storage;
|
SmallString<64> Storage;
|
||||||
StringRef NameStr = Name.toNullTerminatedStringRef(Storage);
|
StringRef NameStr = Name.toNullTerminatedStringRef(Storage);
|
||||||
|
(void)NameStr;
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
#if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || defined(__ANDROID__)
|
#if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || defined(__ANDROID__)
|
||||||
#if HAVE_PTHREAD_SETNAME_NP
|
#if HAVE_PTHREAD_SETNAME_NP
|
||||||
|
|
Loading…
Reference in New Issue