[PATCH] D134839: [lld][COFF][LTO] Don't disable verifier in assert builds
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 29 09:00:38 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1079f1c6eaa6: [lld][COFF][LTO] Don't disable verifier in assert builds (authored by aeubanks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134839/new/
https://reviews.llvm.org/D134839
Files:
lld/COFF/LTO.cpp
Index: lld/COFF/LTO.cpp
===================================================================
--- lld/COFF/LTO.cpp
+++ lld/COFF/LTO.cpp
@@ -76,7 +76,11 @@
c.RelocModel = Reloc::Static;
else
c.RelocModel = Reloc::PIC_;
+#ifndef NDEBUG
+ c.DisableVerify = false;
+#else
c.DisableVerify = true;
+#endif
c.DiagHandler = diagnosticHandler;
c.OptLevel = config->ltoo;
c.CPU = getCPUStr();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134839.463927.patch
Type: text/x-patch
Size: 407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220929/cc08103f/attachment.bin>
More information about the llvm-commits
mailing list