NativePublicSymbol.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- NativePublicSymbol.h - info about public symbols ---------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVEPUBLICSYMBOL_H
  14. #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEPUBLICSYMBOL_H
  15. #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
  16. #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
  17. namespace llvm {
  18. class raw_ostream;
  19. namespace pdb {
  20. class NativeSession;
  21. class NativePublicSymbol : public NativeRawSymbol {
  22. public:
  23. NativePublicSymbol(NativeSession &Session, SymIndexId Id,
  24. const codeview::PublicSym32 &Sym);
  25. ~NativePublicSymbol() override;
  26. void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
  27. PdbSymbolIdField RecurseIdFields) const override;
  28. uint32_t getAddressOffset() const override;
  29. uint32_t getAddressSection() const override;
  30. std::string getName() const override;
  31. uint32_t getRelativeVirtualAddress() const override;
  32. uint64_t getVirtualAddress() const override;
  33. protected:
  34. const codeview::PublicSym32 Sym;
  35. };
  36. } // namespace pdb
  37. } // namespace llvm
  38. #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVEPUBLICSYMBOL_H
  39. #ifdef __GNUC__
  40. #pragma GCC diagnostic pop
  41. #endif