//===- bolt/Passes/PatchEntries.cpp - Pass for patching function entries --===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file implements the PatchEntries class that is used for patching // the original function entry points. // //===----------------------------------------------------------------------===// #include "bolt/Passes/PatchEntries.h" #include "bolt/Utils/NameResolver.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/CommandLine.h" namespace opts { extern llvm::cl::OptionCategory BoltCategory; extern llvm::cl::opt<unsigned> Verbosity; llvm::cl::opt<bool> ForcePatch("force-patch", llvm::cl::desc("force patching of original entry points"), llvm::cl::Hidden, llvm::cl::cat(BoltCategory)); } namespace llvm { namespace bolt { Error PatchEntries::runOnFunctions(BinaryContext &BC) { … } } // end namespace bolt } // end namespace llvm