Home | History | Annotate | Download | only in llvm-objdump
      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 
     18 namespace llvm {
     19 namespace object {
     20   class COFFObjectFile;
     21   class ObjectFile;
     22   class RelocationRef;
     23 }
     24 
     25 extern cl::opt<std::string> TripleName;
     26 extern cl::opt<std::string> ArchName;
     27 
     28 // Various helper functions.
     29 bool error(std::error_code ec);
     30 bool RelocAddressLess(object::RelocationRef a, object::RelocationRef b);
     31 void DumpBytes(StringRef bytes);
     32 void DisassembleInputMachO(StringRef Filename);
     33 void printCOFFUnwindInfo(const object::COFFObjectFile* o);
     34 void printELFFileHeader(const object::ObjectFile *o);
     35 void printCOFFFileHeader(const object::ObjectFile *o);
     36 
     37 } // end namespace llvm
     38 
     39 #endif
     40