XCOFFDump.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //===-- XCOFFDump.h ---------------------------------------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLVM_TOOLS_LLVM_OBJDUMP_XCOFFDUMP_H
  9. #define LLVM_TOOLS_LLVM_OBJDUMP_XCOFFDUMP_H
  10. #include "llvm/Object/XCOFFObjectFile.h"
  11. namespace llvm {
  12. struct SymbolInfoTy;
  13. namespace objdump {
  14. Optional<XCOFF::StorageMappingClass>
  15. getXCOFFSymbolCsectSMC(const object::XCOFFObjectFile *Obj,
  16. const object::SymbolRef &Sym);
  17. Optional<object::SymbolRef>
  18. getXCOFFSymbolContainingSymbolRef(const object::XCOFFObjectFile *Obj,
  19. const object::SymbolRef &Sym);
  20. bool isLabel(const object::XCOFFObjectFile *Obj, const object::SymbolRef &Sym);
  21. std::string getXCOFFSymbolDescription(const SymbolInfoTy &SymbolInfo,
  22. StringRef SymbolName);
  23. Error getXCOFFRelocationValueString(const object::XCOFFObjectFile *Obj,
  24. const object::RelocationRef &RelRef,
  25. llvm::SmallVectorImpl<char> &Result);
  26. } // namespace objdump
  27. } // namespace llvm
  28. #endif