forked from OSchip/llvm-project
[BOLT][NFC] Make ICP::verifyProfile static
Follow LLVM style guide suggestion to avoid function definitions in anonymous namespaces: https://llvm.org/docs/CodingStandards.html#anonymous-namespaces Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D124896
This commit is contained in:
parent
b917433835
commit
e2142ff47c
|
@ -127,12 +127,7 @@ static cl::opt<bool> ICPPeelForInline(
|
|||
|
||||
} // 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;
|
||||
|
@ -157,7 +152,8 @@ bool verifyProfile(std::map<uint64_t, BinaryFunction> &BFs) {
|
|||
return IsValid;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
namespace llvm {
|
||||
namespace bolt {
|
||||
|
||||
IndirectCallPromotion::Callsite::Callsite(BinaryFunction &BF,
|
||||
const IndirectCallProfile &ICP)
|
||||
|
|
Loading…
Reference in New Issue