[PATCH] D130036: [BOLT][NFC] Remove opts::AllowStripped
Huan Nguyen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 18 12:34:01 PDT 2022
nhuhuan created this revision.
Herald added a reviewer: rafauler.
Herald added a subscriber: ayermolo.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a project: All.
nhuhuan requested review of this revision.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.
AllowStripped has not been used in BOLT.
This option is replaced by actively detecting stripped binary.
Test Plan:
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130036
Files:
bolt/lib/Rewrite/RewriteInstance.cpp
Index: bolt/lib/Rewrite/RewriteInstance.cpp
===================================================================
--- bolt/lib/Rewrite/RewriteInstance.cpp
+++ bolt/lib/Rewrite/RewriteInstance.cpp
@@ -92,12 +92,6 @@
"output binary via bolt info section"),
cl::cat(BoltCategory));
-cl::opt<bool>
-AllowStripped("allow-stripped",
- cl::desc("allow processing of stripped binaries"),
- cl::Hidden,
- cl::cat(BoltCategory));
-
cl::opt<bool> DumpDotAll(
"dump-dot-all",
cl::desc("dump function CFGs to graphviz format after each stage;"
@@ -2804,13 +2798,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);
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130036.445596.patch
Type: text/x-patch
Size: 1367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220718/4f5a63d4/attachment.bin>
More information about the llvm-commits
mailing list