diff options
Diffstat (limited to 'bolt/lib/Rewrite/BoltDiff.cpp')
| -rw-r--r-- | bolt/lib/Rewrite/BoltDiff.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bolt/lib/Rewrite/BoltDiff.cpp b/bolt/lib/Rewrite/BoltDiff.cpp index 74b5ca18abce..35f671050664 100644 --- a/bolt/lib/Rewrite/BoltDiff.cpp +++ b/bolt/lib/Rewrite/BoltDiff.cpp @@ -28,7 +28,9 @@ using namespace bolt; namespace opts { extern cl::OptionCategory BoltDiffCategory; extern cl::opt<bool> NeverPrint; -extern cl::opt<bool> ICF; +extern cl::opt<bolt::IdenticalCodeFolding::ICFLevel, false, + llvm::bolt::DeprecatedICFNumericOptionParser> + ICF; static cl::opt<bool> IgnoreLTOSuffix( "ignore-lto-suffix", @@ -697,7 +699,7 @@ void RewriteInstance::compare(RewriteInstance &RI2) { } // Pre-pass ICF - if (opts::ICF) { + if (opts::ICF != IdenticalCodeFolding::ICFLevel::None) { IdenticalCodeFolding ICF(opts::NeverPrint); outs() << "BOLT-DIFF: Starting ICF pass for binary 1"; BC->logBOLTErrorsAndQuitOnFatal(ICF.runOnFunctions(*BC)); |
