//===- bolt/Passes/VeneerElimination.cpp ----------------------------------===// // // 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 class implements a pass that removes linker-inserted veneers from the // code and redirects veneer callers to call to veneers destinations // //===----------------------------------------------------------------------===// #include "bolt/Passes/VeneerElimination.h" #define DEBUG_TYPE … usingnamespacellvm; namespace opts { extern cl::OptionCategory BoltOptCategory; static llvm::cl::opt<bool> EliminateVeneers("elim-link-veneers", cl::desc("run veneer elimination pass"), cl::init(true), cl::Hidden, cl::cat(BoltOptCategory)); } // namespace opts namespace llvm { namespace bolt { Error VeneerElimination::runOnFunctions(BinaryContext &BC) { … } } // namespace bolt } // namespace llvm