[PATCH] D11655: COFF: Sort output sections which start with .debug to the end of the file

Rui Ueyama ruiu at google.com
Thu Jul 30 12:58:55 PDT 2015


ruiu added inline comments.

================
Comment at: COFF/Writer.cpp:405
@@ -401,1 +404,3 @@
+      OutputSections.begin(), OutputSections.end(),
+      [](OutputSection *S) { return !S->getName().startswith(".debug"); });
   for (OutputSection *Sec : OutputSections) {
----------------
I'd check for S->getPermissions() & DISCARDABLE.


http://reviews.llvm.org/D11655







More information about the llvm-commits mailing list