[PATCH] D33140: LTO: Don't verify modules twice in verifyMergedModuleOnce
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 12 14:51:58 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL302951: LTO: Don't verify modules twice in verifyMergedModuleOnce (authored by adrian).
Changed prior to commit:
https://reviews.llvm.org/D33140?vs=98797&id=98851#toc
Repository:
rL LLVM
https://reviews.llvm.org/D33140
Files:
llvm/trunk/lib/LTO/LTOCodeGenerator.cpp
Index: llvm/trunk/lib/LTO/LTOCodeGenerator.cpp
===================================================================
--- llvm/trunk/lib/LTO/LTOCodeGenerator.cpp
+++ llvm/trunk/lib/LTO/LTOCodeGenerator.cpp
@@ -495,17 +495,14 @@
return;
HasVerifiedInput = true;
- if (LTOStripInvalidDebugInfo) {
- bool BrokenDebugInfo = false;
- if (verifyModule(*MergedModule, &dbgs(), &BrokenDebugInfo))
- report_fatal_error("Broken module found, compilation aborted!");
- if (BrokenDebugInfo) {
- emitWarning("Invalid debug info found, debug info will be stripped");
- StripDebugInfo(*MergedModule);
- }
- }
- if (verifyModule(*MergedModule, &dbgs()))
+ bool BrokenDebugInfo = false;
+ if (verifyModule(*MergedModule, &dbgs(),
+ LTOStripInvalidDebugInfo ? &BrokenDebugInfo : nullptr))
report_fatal_error("Broken module found, compilation aborted!");
+ if (BrokenDebugInfo) {
+ emitWarning("Invalid debug info found, debug info will be stripped");
+ StripDebugInfo(*MergedModule);
+ }
}
void LTOCodeGenerator::finishOptimizationRemarks() {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33140.98851.patch
Type: text/x-patch
Size: 1099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170512/96e714f3/attachment.bin>
More information about the llvm-commits
mailing list