DIAInjectedSource.h revision 341825
1//===- DIAInjectedSource.h - DIA impl for IPDBInjectedSource ----*- C++ -*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLVM_DEBUGINFO_PDB_DIA_DIAINJECTEDSOURCE_H
11#define LLVM_DEBUGINFO_PDB_DIA_DIAINJECTEDSOURCE_H
12
13#include "DIASupport.h"
14#include "llvm/DebugInfo/PDB/IPDBInjectedSource.h"
15
16namespace llvm {
17namespace pdb {
18class DIASession;
19
20class DIAInjectedSource : public IPDBInjectedSource {
21public:
22  explicit DIAInjectedSource(CComPtr<IDiaInjectedSource> DiaSourceFile);
23
24  uint32_t getCrc32() const override;
25  uint64_t getCodeByteSize() const override;
26  std::string getFileName() const override;
27  std::string getObjectFileName() const override;
28  std::string getVirtualFileName() const override;
29  PDB_SourceCompression getCompression() const override;
30  std::string getCode() const override;
31
32private:
33  CComPtr<IDiaInjectedSource> SourceFile;
34};
35} // namespace pdb
36} // namespace llvm
37
38#endif // LLVM_DEBUGINFO_PDB_DIA_DIAINJECTEDSOURCE_H
39