Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / tools / llvm-objdump / ELFDump.h
blob205c3d256e2b3907c279444251397cc171334f83
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_TOOLS_LLVM_OBJDUMP_ELFDUMP_H
10 #define LLVM_TOOLS_LLVM_OBJDUMP_ELFDUMP_H
12 #include "llvm/ADT/SmallVector.h"
14 namespace llvm {
16 class Error;
18 namespace object {
19 class ELFObjectFileBase;
20 class ELFSectionRef;
21 class ObjectFile;
22 class RelocationRef;
23 } // namespace object
25 namespace objdump {
27 Error getELFRelocationValueString(const object::ELFObjectFileBase *Obj,
28 const object::RelocationRef &Rel,
29 llvm::SmallVectorImpl<char> &Result);
30 uint64_t getELFSectionLMA(const object::ELFSectionRef &Sec);
32 void printELFFileHeader(const object::ObjectFile *O);
34 } // namespace objdump
35 } // namespace llvm
37 #endif