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