[PATCH] D37119: lld-link: Use opt:noref by default in debug builds

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 24 13:32:12 PDT 2017


ruiu added inline comments.


================
Comment at: lld/COFF/Driver.cpp:846-850
+  // msvc linker uses /opt:noref by default in debug builds
+  if (Config->Debug) {
+    Config->DoGC = false;
+    Config->DoICF = false;
+  }
----------------
Instead of adding a new `if`, move line 760-766 here and set DoGC and DoICF to false in that `if`.


Repository:
  rL LLVM

https://reviews.llvm.org/D37119





More information about the llvm-commits mailing list