diff --git a/bolt/lib/Passes/IndirectCallPromotion.cpp b/bolt/lib/Passes/IndirectCallPromotion.cpp --- a/bolt/lib/Passes/IndirectCallPromotion.cpp +++ b/bolt/lib/Passes/IndirectCallPromotion.cpp @@ -122,12 +122,7 @@ } // namespace opts -namespace llvm { -namespace bolt { - -namespace { - -bool verifyProfile(std::map &BFs) { +static bool verifyProfile(std::map &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)