NativeExeSymbol.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- NativeExeSymbol.h - native impl for PDBSymbolExe ---------*- 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_NATIVEEXESYMBOL_H
  14. #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEEXESYMBOL_H
  15. #include "llvm/DebugInfo/CodeView/GUID.h"
  16. #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
  17. #include "llvm/DebugInfo/PDB/PDBTypes.h"
  18. namespace llvm {
  19. namespace pdb {
  20. class NativeSession;
  21. class DbiStream;
  22. class NativeExeSymbol : public NativeRawSymbol {
  23. // EXE symbol is the authority on the various symbol types.
  24. DbiStream *Dbi = nullptr;
  25. public:
  26. NativeExeSymbol(NativeSession &Session, SymIndexId Id);
  27. std::unique_ptr<IPDBEnumSymbols>
  28. findChildren(PDB_SymType Type) const override;
  29. uint32_t getAge() const override;
  30. std::string getSymbolsFileName() const override;
  31. codeview::GUID getGuid() const override;
  32. bool hasCTypes() const override;
  33. bool hasPrivateSymbols() const override;
  34. };
  35. } // namespace pdb
  36. } // namespace llvm
  37. #endif
  38. #ifdef __GNUC__
  39. #pragma GCC diagnostic pop
  40. #endif