LLVM  8.0.1
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 namespace pdb {
18 class DIASession;
19 
20 class DIASourceFile : public IPDBSourceFile {
21 public:
22  explicit DIASourceFile(const DIASession &Session,
23  CComPtr<IDiaSourceFile> DiaSourceFile);
24 
25  std::string getFileName() const override;
26  uint32_t getUniqueId() const override;
27  std::string getChecksum() const override;
28  PDB_Checksum getChecksumType() const override;
29  std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
30  getCompilands() const override;
31 
32  CComPtr<IDiaSourceFile> getDiaFile() const { return SourceFile; }
33 
34 private:
35  const DIASession &Session;
36  CComPtr<IDiaSourceFile> SourceFile;
37 };
38 }
39 }
40 
41 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:24
std::unique_ptr< IPDBEnumChildren< PDBSymbolCompiland > > getCompilands() const override
PDB_Checksum
Specifies the hash algorithm that a source file from a PDB was hashed with.
Definition: PDBTypes.h:118
IPDBSourceFile defines an interface used to represent source files whose information are stored in th...
uint32_t getUniqueId() const override
std::string getChecksum() const override
CComPtr< IDiaSourceFile > getDiaFile() const
Definition: DIASourceFile.h:32
PDB_Checksum getChecksumType() const override
DIASourceFile(const DIASession &Session, CComPtr< IDiaSourceFile > DiaSourceFile)
std::string getFileName() const override