LLVM  3.7.0
IPDBSourceFile.h
Go to the documentation of this file.
1 //===- IPDBSourceFile.h - base interface for a PDB source file --*- 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_IPDBSOURCEFILE_H
11 #define LLVM_DEBUGINFO_PDB_IPDBSOURCEFILE_H
12 
13 #include "PDBTypes.h"
14 #include <memory>
15 #include <string>
16 
17 namespace llvm {
18 
19 class raw_ostream;
20 
21 /// IPDBSourceFile defines an interface used to represent source files whose
22 /// information are stored in the PDB.
24 public:
25  virtual ~IPDBSourceFile();
26 
27  void dump(raw_ostream &OS, int Indent) const;
28 
29  virtual std::string getFileName() const = 0;
30  virtual uint32_t getUniqueId() const = 0;
31  virtual std::string getChecksum() const = 0;
32  virtual PDB_Checksum getChecksumType() const = 0;
33  virtual std::unique_ptr<IPDBEnumSymbols> getCompilands() const = 0;
34 };
35 }
36 
37 #endif
virtual std::string getFileName() const =0
virtual uint32_t getUniqueId() const =0
virtual PDB_Checksum getChecksumType() const =0
virtual std::unique_ptr< IPDBEnumSymbols > getCompilands() const =0
PDB_Checksum
Specifies the hash algorithm that a source file from a PDB was hashed with.
Definition: PDBTypes.h:106
void dump(raw_ostream &OS, int Indent) const
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:38
IPDBSourceFile defines an interface used to represent source files whose information are stored in th...
virtual std::string getChecksum() const =0