Provide DIA implementation of DebugInfoPDB.
[oota-llvm.git] / include / llvm / DebugInfo / PDB / IPDBSourceFile.h
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 <memory>
14 #include <string>
15
16 #include "PDBTypes.h"
17
18 namespace llvm {
19
20 /// IPDBSourceFile defines an interface used to represent source files whose
21 /// information are stored in the PDB.
22 class IPDBSourceFile {
23 public:
24   virtual ~IPDBSourceFile();
25
26   virtual std::string getFileName() const = 0;
27   virtual uint32_t getUniqueId() const = 0;
28   virtual std::string getChecksum() const = 0;
29   virtual PDB_Checksum getChecksumType() const = 0;
30   virtual std::unique_ptr<IPDBEnumSymbols> getCompilands() const = 0;
31 };
32 }
33
34 #endif