LLVM  14.0.0git
DIAInjectedSource.h
Go to the documentation of this file.
1 //===- DIAInjectedSource.h - DIA impl for IPDBInjectedSource ----*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_DEBUGINFO_PDB_DIA_DIAINJECTEDSOURCE_H
10 #define LLVM_DEBUGINFO_PDB_DIA_DIAINJECTEDSOURCE_H
11 
12 #include "DIASupport.h"
14 
15 namespace llvm {
16 namespace pdb {
17 class DIASession;
18 
20 public:
21  explicit DIAInjectedSource(CComPtr<IDiaInjectedSource> DiaSourceFile);
22 
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 
31 private:
32  CComPtr<IDiaInjectedSource> SourceFile;
33 };
34 } // namespace pdb
35 } // namespace llvm
36 
37 #endif // LLVM_DEBUGINFO_PDB_DIA_DIAINJECTEDSOURCE_H
llvm::pdb::DIAInjectedSource::getFileName
std::string getFileName() const override
Definition: DIAInjectedSource.cpp:31
DIASupport.h
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
llvm::pdb::DIAInjectedSource
Definition: DIAInjectedSource.h:19
llvm::pdb::DIAInjectedSource::getCode
std::string getCode() const override
Definition: DIAInjectedSource.cpp:51
llvm::pdb::DIAInjectedSource::DIAInjectedSource
DIAInjectedSource(CComPtr< IDiaInjectedSource > DiaSourceFile)
Definition: DIAInjectedSource.cpp:18
llvm::pdb::DIAInjectedSource::getObjectFileName
std::string getObjectFileName() const override
Definition: DIAInjectedSource.cpp:35
uint64_t
llvm::pdb::DIAInjectedSource::getVirtualFileName
std::string getVirtualFileName() const override
Definition: DIAInjectedSource.cpp:39
llvm::pdb::DIAInjectedSource::getCompression
uint32_t getCompression() const override
Definition: DIAInjectedSource.cpp:44
IPDBInjectedSource.h
uint32_t
llvm::pdb::IPDBInjectedSource
IPDBInjectedSource defines an interface used to represent source files which were injected directly i...
Definition: IPDBInjectedSource.h:21
llvm::pdb::DIAInjectedSource::getCodeByteSize
uint64_t getCodeByteSize() const override
Definition: DIAInjectedSource.cpp:26
llvm::pdb::DIAInjectedSource::getCrc32
uint32_t getCrc32() const override
Definition: DIAInjectedSource.cpp:21