DIAInjectedSource.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- DIAInjectedSource.h - DIA impl for IPDBInjectedSource ----*- 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_DIA_DIAINJECTEDSOURCE_H
  14. #define LLVM_DEBUGINFO_PDB_DIA_DIAINJECTEDSOURCE_H
  15. #include "DIASupport.h"
  16. #include "llvm/DebugInfo/PDB/IPDBInjectedSource.h"
  17. namespace llvm {
  18. namespace pdb {
  19. class DIASession;
  20. class DIAInjectedSource : public IPDBInjectedSource {
  21. public:
  22. explicit DIAInjectedSource(CComPtr<IDiaInjectedSource> DiaSourceFile);
  23. uint32_t getCrc32() const override;
  24. uint64_t getCodeByteSize() const override;
  25. std::string getFileName() const override;
  26. std::string getObjectFileName() const override;
  27. std::string getVirtualFileName() const override;
  28. uint32_t getCompression() const override;
  29. std::string getCode() const override;
  30. private:
  31. CComPtr<IDiaInjectedSource> SourceFile;
  32. };
  33. } // namespace pdb
  34. } // namespace llvm
  35. #endif // LLVM_DEBUGINFO_PDB_DIA_DIAINJECTEDSOURCE_H
  36. #ifdef __GNUC__
  37. #pragma GCC diagnostic pop
  38. #endif