Skip to content

Commit 5ca4401

Browse files
committed
Revert LLVM_DEBUG as gives error: use of undeclared identifier 'DEBUG_TYPE'.
1 parent 4cab9be commit 5ca4401

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lld/MachO/Driver.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,10 @@ class SerialBackgroundQueue {
336336
}
337337
};
338338

339-
#ifndef NDEBUG
339+
// #ifndef NDEBUG
340340
#include <iomanip>
341341
#include <iostream>
342-
#endif
342+
// #endif
343343

344344
// Most input files have been mapped but not yet paged in.
345345
// This code forces the page-ins on multiple threads so
@@ -372,10 +372,12 @@ void multiThreadedPageInBackground(DeferredFiles &deferred) {
372372
});
373373

374374
LLVM_ATTRIBUTE_UNUSED auto dt = high_resolution_clock::now() - t0;
375-
LLVM_DEBUG(if (Process::GetEnv("LLD_MULTI_THREAD_PAGE")) std::cerr
376-
<< "multiThreadedPageIn " << totalBytes << "/" << included << "/"
377-
<< deferred.size() << "/" << std::setprecision(4)
378-
<< duration_cast<milliseconds>(dt).count() / 1000. << "\n");
375+
// LLVM_DEBUG(
376+
if (Process::GetEnv("LLD_MULTI_THREAD_PAGE"))
377+
std::cerr << "multiThreadedPageIn " << totalBytes << "/" << included << "/"
378+
<< deferred.size() << "/" << std::setprecision(4)
379+
<< duration_cast<milliseconds>(dt).count() / 1000. << "\n";
380+
// );
379381
}
380382

381383
static void multiThreadedPageIn(const DeferredFiles &deferred,

0 commit comments

Comments
 (0)