llvm-readobj.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //===-- llvm-readobj.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. #ifndef LLVM_TOOLS_LLVM_READOBJ_LLVM_READOBJ_H
  10. #define LLVM_TOOLS_LLVM_READOBJ_LLVM_READOBJ_H
  11. #include "llvm/Support/CommandLine.h"
  12. #include <string>
  13. namespace llvm {
  14. namespace object {
  15. class RelocationRef;
  16. }
  17. // Various helper functions.
  18. bool error(std::error_code ec);
  19. bool relocAddressLess(object::RelocationRef A,
  20. object::RelocationRef B);
  21. } // namespace llvm
  22. namespace opts {
  23. extern llvm::cl::list<std::string> InputFilenames;
  24. extern llvm::cl::opt<bool> FileHeaders;
  25. extern llvm::cl::opt<bool> Sections;
  26. extern llvm::cl::opt<bool> SectionRelocations;
  27. extern llvm::cl::opt<bool> SectionSymbols;
  28. extern llvm::cl::opt<bool> SectionData;
  29. extern llvm::cl::opt<bool> Relocations;
  30. extern llvm::cl::opt<bool> Symbols;
  31. extern llvm::cl::opt<bool> DynamicSymbols;
  32. extern llvm::cl::opt<bool> UnwindInfo;
  33. extern llvm::cl::opt<bool> ExpandRelocs;
  34. extern llvm::cl::opt<bool> CodeView;
  35. extern llvm::cl::opt<bool> CodeViewSubsectionBytes;
  36. extern llvm::cl::opt<bool> ARMAttributes;
  37. extern llvm::cl::opt<bool> MipsPLTGOT;
  38. } // namespace opts
  39. #define LLVM_READOBJ_ENUM_ENT(ns, enum) \
  40. { #enum, ns::enum }
  41. #endif