File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ void llvm::set_thread_name(const Twine &Name) {
141
141
if (get_max_thread_name_length () > 0 )
142
142
NameStr = NameStr.take_back (get_max_thread_name_length ());
143
143
(void )NameStr;
144
+ #if 0
144
145
#if defined(__linux__)
145
146
#if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || defined(__ANDROID__)
146
147
#if HAVE_PTHREAD_SETNAME_NP
@@ -155,6 +156,7 @@ void llvm::set_thread_name(const Twine &Name) {
155
156
#elif defined(__APPLE__)
156
157
::pthread_setname_np(NameStr.data());
157
158
#endif
159
+ #endif
158
160
}
159
161
160
162
void llvm::get_thread_name (SmallVectorImpl<char > &Name) {
@@ -203,6 +205,7 @@ void llvm::get_thread_name(SmallVectorImpl<char> &Name) {
203
205
204
206
Name.append (buf, buf + strlen (buf));
205
207
#elif defined(__linux__)
208
+ #if 0
206
209
#if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || defined(__ANDROID__)
207
210
#if HAVE_PTHREAD_GETNAME_NP
208
211
constexpr uint32_t len = get_max_thread_name_length_impl();
@@ -212,4 +215,5 @@ void llvm::get_thread_name(SmallVectorImpl<char> &Name) {
212
215
#endif
213
216
#endif
214
217
#endif
218
+ #endif
215
219
}
You can’t perform that action at this time.
0 commit comments