[PATCH] D115416: [lld-macho] Prevent writing map files on the critical path

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 14 16:53:41 PST 2021


oontvoo added inline comments.


================
Comment at: lld/MachO/Writer.cpp:1043-1048
+    threadFutures.emplace_back(threadPool.async(
+        [](LinkEditSection *osec) {
+          if (osec)
+            osec->finalizeContents();
+        },
+        osec));
----------------
No need to enqueue a NULL `osec`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115416/new/

https://reviews.llvm.org/D115416



More information about the llvm-commits mailing list