//===- MCELFExtras.h - Extra functions for ELF ------------------*- C++ -*-===// // // 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 // //===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCELFEXTRAS_H #define LLVM_MC_MCELFEXTRAS_H #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/bit.h" #include "llvm/BinaryFormat/ELF.h" #include "llvm/Support/LEB128.h" #include "llvm/Support/raw_ostream.h" #include <cstdint> #include <type_traits> namespace llvm::ELF { // Encode relocations as CREL to OS. ToCrel is responsible for converting a // const RelocsTy & to an Elf_Crel. template <bool Is64, class RelocsTy, class F> void encodeCrel(raw_ostream &OS, RelocsTy Relocs, F ToCrel) { … } } // namespace llvm::ELF #endif