LLVM  3.7.0
DIASourceFile.h
Go to the documentation of this file.
1 //===- DIASourceFile.h - DIA implementation of IPDBSourceFile ---*- 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_DIASOURCEFILE_H
11 #define LLVM_DEBUGINFO_PDB_DIA_DIASOURCEFILE_H
12 
13 #include "DIASupport.h"
15 
16 namespace llvm {
17 class DIASession;
18 
19 class DIASourceFile : public IPDBSourceFile {
20 public:
21  explicit DIASourceFile(const DIASession &Session,
22  CComPtr<IDiaSourceFile> DiaSourceFile);
23 
24  std::string getFileName() const override;
25  uint32_t getUniqueId() const override;
26  std::string getChecksum() const override;
27  PDB_Checksum getChecksumType() const override;
28  std::unique_ptr<IPDBEnumSymbols> getCompilands() const override;
29 
30 private:
31  const DIASession &Session;
32  CComPtr<IDiaSourceFile> SourceFile;
33 };
34 }
35 
36 #endif
std::string getFileName() const override
std::unique_ptr< IPDBEnumSymbols > getCompilands() const override
PDB_Checksum getChecksumType() const override
DIASourceFile(const DIASession &Session, CComPtr< IDiaSourceFile > DiaSourceFile)
uint32_t getUniqueId() const override
PDB_Checksum
Specifies the hash algorithm that a source file from a PDB was hashed with.
Definition: PDBTypes.h:106
std::string getChecksum() const override
IPDBSourceFile defines an interface used to represent source files whose information are stored in th...