File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4141#include " llvm/Object/Archive.h"
4242#include " llvm/Option/ArgList.h"
4343#include " llvm/Support/CommandLine.h"
44+ #include " llvm/Support/Debug.h"
4445#include " llvm/Support/FileSystem.h"
4546#include " llvm/Support/Parallel.h"
4647#include " llvm/Support/Path.h"
@@ -361,11 +362,10 @@ void multiThreadedPageInBackground(DeferredFiles &deferred) {
361362 page += pageSize)
362363 LLVM_ATTRIBUTE_UNUSED volatile char t = *page;
363364#else
365+ #define DEBUG_TYPE " lld-madvise"
364366 if (madvise ((void *)buff.data (), buff.size (), MADV_WILLNEED) < 0 )
365- #ifndef NDEBUG
366- llvm::errs () << " madvise() error " << strerror (errno)
367- #endif
368- ;
367+ LLVM_DEBUG (llvm::dbgs () << " madvise() error: " << strerror (errno));
368+ #undef DEBUG_TYPE
369369#endif
370370 };
371371
You can’t perform that action at this time.
0 commit comments