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