NativeSourceFile.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- NativeSourceFile.h - Native source file implementation ---*- 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_NATIVESOURCEFILE_H
  14. #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVESOURCEFILE_H
  15. #include "llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h"
  16. #include "llvm/DebugInfo/PDB/IPDBSourceFile.h"
  17. #include "llvm/DebugInfo/PDB/PDBTypes.h"
  18. namespace llvm {
  19. namespace pdb {
  20. class PDBSymbolCompiland;
  21. template <typename ChildType> class IPDBEnumChildren;
  22. class NativeSession;
  23. class NativeSourceFile : public IPDBSourceFile {
  24. public:
  25. explicit NativeSourceFile(NativeSession &Session, uint32_t FileId,
  26. const codeview::FileChecksumEntry &Checksum);
  27. std::string getFileName() const override;
  28. uint32_t getUniqueId() const override;
  29. std::string getChecksum() const override;
  30. PDB_Checksum getChecksumType() const override;
  31. std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
  32. getCompilands() const override;
  33. private:
  34. NativeSession &Session;
  35. uint32_t FileId;
  36. const codeview::FileChecksumEntry Checksum;
  37. };
  38. } // namespace pdb
  39. } // namespace llvm
  40. #endif
  41. #ifdef __GNUC__
  42. #pragma GCC diagnostic pop
  43. #endif