diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp --- a/bolt/lib/Rewrite/RewriteInstance.cpp +++ b/bolt/lib/Rewrite/RewriteInstance.cpp @@ -92,12 +92,6 @@ "output binary via bolt info section"), cl::cat(BoltCategory)); -cl::opt -AllowStripped("allow-stripped", - cl::desc("allow processing of stripped binaries"), - cl::Hidden, - cl::cat(BoltCategory)); - cl::opt DumpDotAll( "dump-dot-all", cl::desc("dump function CFGs to graphviz format after each stage;" @@ -2813,13 +2807,11 @@ if (Error E = ProfileReader->preprocessProfile(*BC.get())) report_error("cannot pre-process profile", std::move(E)); - if (!BC->hasSymbolsWithFileName() && ProfileReader->hasLocalsWithFileName() && - !opts::AllowStripped) { + if (!BC->hasSymbolsWithFileName() && ProfileReader->hasLocalsWithFileName()) { errs() << "BOLT-ERROR: input binary does not have local file symbols " "but profile data includes function names with embedded file " "names. It appears that the input binary was stripped while a " - "profiled binary was not. If you know what you are doing and " - "wish to proceed, use -allow-stripped option.\n"; + "profiled binary was not\n"; exit(1); } }