1//===-- ELFDump.h - ELF-specific dumper -------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_TOOLS_LLVM_OBJDUMP_ELFDUMP_H
10#define LLVM_TOOLS_LLVM_OBJDUMP_ELFDUMP_H
11
12#include "llvm/ADT/SmallVector.h"
13
14namespace llvm {
15
16class Error;
17
18namespace object {
19class ELFObjectFileBase;
20class ELFSectionRef;
21class RelocationRef;
22} // namespace object
23
24namespace objdump {
25
26Error getELFRelocationValueString(const object::ELFObjectFileBase *Obj,
27 const object::RelocationRef &Rel,
28 llvm::SmallVectorImpl<char> &Result);
29uint64_t getELFSectionLMA(const object::ELFSectionRef &Sec);
30
31} // namespace objdump
32} // namespace llvm
33
34#endif
35