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 @@ -127,12 +127,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; @@ -157,7 +152,8 @@ return IsValid; } -} // namespace +namespace llvm { +namespace bolt { IndirectCallPromotion::Callsite::Callsite(BinaryFunction &BF, const IndirectCallProfile &ICP)