Path: blob/main/contrib/llvm-project/llvm/tools/llvm-objdump/ELFDump.h
35231 views
//===-- ELFDump.h - ELF-specific dumper -------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_TOOLS_LLVM_OBJDUMP_ELFDUMP_H9#define LLVM_TOOLS_LLVM_OBJDUMP_ELFDUMP_H1011#include "llvm/ADT/SmallVector.h"1213namespace llvm {1415class Error;1617namespace object {18class ELFObjectFileBase;19class ELFSectionRef;20class ObjectFile;21class RelocationRef;22} // namespace object2324namespace objdump {2526Error getELFRelocationValueString(const object::ELFObjectFileBase *Obj,27const object::RelocationRef &Rel,28llvm::SmallVectorImpl<char> &Result);29uint64_t getELFSectionLMA(const object::ELFSectionRef &Sec);3031void printELFFileHeader(const object::ObjectFile *O);3233} // namespace objdump34} // namespace llvm3536#endif373839