NativeExeSymbol.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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/PDB/Native/NativeRawSymbol.h"
  16. #include "llvm/DebugInfo/PDB/Native/NativeSession.h"
  17. namespace llvm {
  18. namespace pdb {
  19. class DbiStream;
  20. class NativeExeSymbol : public NativeRawSymbol {
  21. // EXE symbol is the authority on the various symbol types.
  22. DbiStream *Dbi = nullptr;
  23. public:
  24. NativeExeSymbol(NativeSession &Session, SymIndexId Id);
  25. std::unique_ptr<IPDBEnumSymbols>
  26. findChildren(PDB_SymType Type) const override;
  27. uint32_t getAge() const override;
  28. std::string getSymbolsFileName() const override;
  29. codeview::GUID getGuid() const override;
  30. bool hasCTypes() const override;
  31. bool hasPrivateSymbols() const override;
  32. };
  33. } // namespace pdb
  34. } // namespace llvm
  35. #endif
  36. #ifdef __GNUC__
  37. #pragma GCC diagnostic pop
  38. #endif