File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ using namespace llvm;
5757static cl::opt<bool >
5858 DisableAutoUpgradeDebugInfo (" disable-auto-upgrade-debug-info" ,
5959 cl::desc (" Disable autoupgrade of debug info" ));
60+ static cl::opt<bool > LLVMVerifyFatalErrors (
61+ " auto-upgrade-llvm-verify-fatal-errors" , cl::init(true ),
62+ cl::desc(" If true, report LLVM verify errors as fatal" ));
6063
6164static void rename (GlobalValue *GV) { GV->setName (GV->getName () + " .old" ); }
6265
@@ -5005,7 +5008,8 @@ bool llvm::UpgradeDebugInfo(Module &M) {
50055008 if (Version == DEBUG_METADATA_VERSION) {
50065009 bool BrokenDebugInfo = false ;
50075010 if (verifyModule (M, &llvm::errs (), &BrokenDebugInfo))
5008- report_fatal_error (" Broken module found, compilation aborted!" );
5011+ if (LLVMVerifyFatalErrors)
5012+ report_fatal_error (" Broken module found, compilation aborted!" );
50095013 if (!BrokenDebugInfo)
50105014 // Everything is ok.
50115015 return false ;
You can’t perform that action at this time.
0 commit comments