1 //===-- llvm-objdump.h ----------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_OBJDUMP_H
11 #define LLVM_OBJDUMP_H
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/Support/CommandLine.h"
15 #include "llvm/Support/DataTypes.h"
16 #include "llvm/Support/StringRefMemoryObject.h"
21 class MachOObjectFile;
26 extern cl::opt<std::string> TripleName;
27 extern cl::opt<std::string> ArchName;
29 // Various helper functions.
30 bool error(std::error_code ec);
31 bool RelocAddressLess(object::RelocationRef a, object::RelocationRef b);
32 void DumpBytes(StringRef bytes);
33 void DisassembleInputMachO(StringRef Filename);
34 void printCOFFUnwindInfo(const object::COFFObjectFile* o);
35 void printMachOUnwindInfo(const object::MachOObjectFile* o);
37 void printELFFileHeader(const object::ObjectFile *o);
38 void printCOFFFileHeader(const object::ObjectFile *o);
40 } // end namespace llvm