Eric Christopher | 76e70f3 | 2013-04-03 18:31:38 +0000 | [diff] [blame] | 1 | //===-- llvm-readobj.h ----------------------------------------------------===// |
Michael J. Spencer | d326d05 | 2013-02-20 02:37:12 +0000 | [diff] [blame] | 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_TOOLS_READ_OBJ_H |
| 11 | #define LLVM_TOOLS_READ_OBJ_H |
| 12 | |
Eric Christopher | 76e70f3 | 2013-04-03 18:31:38 +0000 | [diff] [blame] | 13 | #include "llvm/Support/CommandLine.h" |
| 14 | #include <string> |
Michael J. Spencer | d326d05 | 2013-02-20 02:37:12 +0000 | [diff] [blame] | 15 | |
| 16 | namespace llvm { |
Eric Christopher | 76e70f3 | 2013-04-03 18:31:38 +0000 | [diff] [blame] | 17 | namespace object { |
| 18 | class RelocationRef; |
| 19 | } |
Michael J. Spencer | d326d05 | 2013-02-20 02:37:12 +0000 | [diff] [blame] | 20 | |
Eric Christopher | 76e70f3 | 2013-04-03 18:31:38 +0000 | [diff] [blame] | 21 | class error_code; |
| 22 | |
| 23 | // Various helper functions. |
| 24 | bool error(error_code ec); |
| 25 | bool relocAddressLess(object::RelocationRef A, |
| 26 | object::RelocationRef B); |
| 27 | } // namespace llvm |
| 28 | |
| 29 | namespace opts { |
| 30 | extern llvm::cl::list<std::string> InputFilenames; |
| 31 | extern llvm::cl::opt<bool> FileHeaders; |
| 32 | extern llvm::cl::opt<bool> Sections; |
| 33 | extern llvm::cl::opt<bool> SectionRelocations; |
| 34 | extern llvm::cl::opt<bool> SectionSymbols; |
| 35 | extern llvm::cl::opt<bool> SectionData; |
| 36 | extern llvm::cl::opt<bool> Relocations; |
| 37 | extern llvm::cl::opt<bool> Symbols; |
| 38 | extern llvm::cl::opt<bool> DynamicSymbols; |
| 39 | extern llvm::cl::opt<bool> UnwindInfo; |
Nico Rieck | 1c8dfa5 | 2013-04-12 04:01:52 +0000 | [diff] [blame] | 40 | extern llvm::cl::opt<bool> ExpandRelocs; |
Eric Christopher | 76e70f3 | 2013-04-03 18:31:38 +0000 | [diff] [blame] | 41 | } // namespace opts |
| 42 | |
| 43 | #define LLVM_READOBJ_ENUM_ENT(ns, enum) \ |
| 44 | { #enum, ns::enum } |
Michael J. Spencer | d326d05 | 2013-02-20 02:37:12 +0000 | [diff] [blame] | 45 | |
| 46 | #endif |