[PATCH] D124896: [BOLT][NFC] Make ICP::verifyProfile static
Amir Ayupov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 19:37:04 PDT 2022
Amir updated this revision to Diff 426905.
Amir added a comment.
Remove extra line
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124896/new/
https://reviews.llvm.org/D124896
Files:
bolt/lib/Passes/IndirectCallPromotion.cpp
Index: bolt/lib/Passes/IndirectCallPromotion.cpp
===================================================================
--- bolt/lib/Passes/IndirectCallPromotion.cpp
+++ bolt/lib/Passes/IndirectCallPromotion.cpp
@@ -122,12 +122,7 @@
} // namespace opts
-namespace llvm {
-namespace bolt {
-
-namespace {
-
-bool verifyProfile(std::map<uint64_t, BinaryFunction> &BFs) {
+static bool verifyProfile(std::map<uint64_t, BinaryFunction> &BFs) {
bool IsValid = true;
for (auto &BFI : BFs) {
BinaryFunction &BF = BFI.second;
@@ -152,7 +147,8 @@
return IsValid;
}
-} // namespace
+namespace llvm {
+namespace bolt {
IndirectCallPromotion::Callsite::Callsite(BinaryFunction &BF,
const IndirectCallProfile &ICP)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124896.426905.patch
Type: text/x-patch
Size: 766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220504/09dbc80e/attachment.bin>
More information about the llvm-commits
mailing list