NativeSourceFile.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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/Native/PDBFile.h"
  18. #include "llvm/DebugInfo/PDB/Native/PDBStringTable.h"
  19. namespace llvm {
  20. namespace pdb {
  21. class NativeSession;
  22. class NativeSourceFile : public IPDBSourceFile {
  23. public:
  24. explicit NativeSourceFile(NativeSession &Session, uint32_t FileId,
  25. const codeview::FileChecksumEntry &Checksum);
  26. std::string getFileName() const override;
  27. uint32_t getUniqueId() const override;
  28. std::string getChecksum() const override;
  29. PDB_Checksum getChecksumType() const override;
  30. std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
  31. getCompilands() const override;
  32. private:
  33. NativeSession &Session;
  34. uint32_t FileId;
  35. const codeview::FileChecksumEntry Checksum;
  36. };
  37. } // namespace pdb
  38. } // namespace llvm
  39. #endif
  40. #ifdef __GNUC__
  41. #pragma GCC diagnostic pop
  42. #endif