LLVM  14.0.0git
IPDBSourceFile.h
Go to the documentation of this file.
1 //===- IPDBSourceFile.h - base interface for a PDB source file --*- 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_IPDBSOURCEFILE_H
10 #define LLVM_DEBUGINFO_PDB_IPDBSOURCEFILE_H
11 
12 #include "PDBTypes.h"
13 #include <memory>
14 #include <string>
15 
16 namespace llvm {
17 class raw_ostream;
18 
19 namespace pdb {
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<IPDBEnumChildren<PDBSymbolCompiland>>
34  getCompilands() const = 0;
35 };
36 }
37 }
38 
39 #endif
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::pdb::IPDBSourceFile::getFileName
virtual std::string getFileName() const =0
llvm::pdb::IPDBSourceFile
IPDBSourceFile defines an interface used to represent source files whose information are stored in th...
Definition: IPDBSourceFile.h:23
llvm::pdb::IPDBSourceFile::getUniqueId
virtual uint32_t getUniqueId() const =0
llvm::pdb::IPDBSourceFile::getCompilands
virtual std::unique_ptr< IPDBEnumChildren< PDBSymbolCompiland > > getCompilands() const =0
llvm::pdb::IPDBSourceFile::dump
void dump(raw_ostream &OS, int Indent) const
Definition: IPDBSourceFile.cpp:22
llvm::pdb::IPDBSourceFile::getChecksumType
virtual PDB_Checksum getChecksumType() const =0
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
PDBTypes.h
uint32_t
llvm::pdb::PDB_Checksum
PDB_Checksum
Specifies the hash algorithm that a source file from a PDB was hashed with.
Definition: PDBTypes.h:119
llvm::pdb::IPDBSourceFile::getChecksum
virtual std::string getChecksum() const =0
llvm::pdb::IPDBSourceFile::~IPDBSourceFile
virtual ~IPDBSourceFile()