XCOFFDump.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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. bool isLabel(const object::XCOFFObjectFile *Obj, const object::SymbolRef &Sym);
  18. std::string getXCOFFSymbolDescription(const SymbolInfoTy &SymbolInfo,
  19. StringRef SymbolName);
  20. Error getXCOFFRelocationValueString(const object::XCOFFObjectFile *Obj,
  21. const object::RelocationRef &RelRef,
  22. llvm::SmallVectorImpl<char> &Result);
  23. } // namespace objdump
  24. } // namespace llvm
  25. #endif