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 @@ -120,14 +120,10 @@ "for jump tables, optimize indirect jmp targets instead of indices"), cl::init(false), cl::ZeroOrMore, cl::Hidden, cl::cat(BoltOptCategory)); -} // namespace opts - -namespace llvm { -namespace bolt { -namespace { +} // namespace opts -bool verifyProfile(std::map &BFs) { +static bool verifyProfile(std::map &BFs) { bool IsValid = true; for (auto &BFI : BFs) { BinaryFunction &BF = BFI.second; @@ -152,7 +148,8 @@ return IsValid; } -} // namespace +namespace llvm { +namespace bolt { IndirectCallPromotion::Callsite::Callsite(BinaryFunction &BF, const IndirectCallProfile &ICP)