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 41
41
#include " llvm/Object/Archive.h"
42
42
#include " llvm/Option/ArgList.h"
43
43
#include " llvm/Support/CommandLine.h"
44
+ #include " llvm/Support/Debug.h"
44
45
#include " llvm/Support/FileSystem.h"
45
46
#include " llvm/Support/Parallel.h"
46
47
#include " llvm/Support/Path.h"
@@ -361,11 +362,10 @@ void multiThreadedPageInBackground(DeferredFiles &deferred) {
361
362
page += pageSize)
362
363
LLVM_ATTRIBUTE_UNUSED volatile char t = *page;
363
364
#else
365
+ #define DEBUG_TYPE " lld-madvise"
364
366
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
369
369
#endif
370
370
};
371
371
You can’t perform that action at this time.
0 commit comments