LLVM 22.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"
14#include <memory>
15#include <string>
16
17namespace llvm {
18class raw_ostream;
19
20namespace pdb {
21
22/// IPDBSourceFile defines an interface used to represent source files whose
23/// information are stored in the PDB.
25public:
26 virtual ~IPDBSourceFile();
27
28 void dump(raw_ostream &OS, int Indent) const;
29
30 virtual std::string getFileName() const = 0;
31 virtual uint32_t getUniqueId() const = 0;
32 virtual std::string getChecksum() const = 0;
33 virtual PDB_Checksum getChecksumType() const = 0;
34 virtual std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
35 getCompilands() const = 0;
36};
37}
38}
39
40#endif
#define LLVM_ABI
Definition: Compiler.h:213
raw_pwrite_stream & OS
IPDBSourceFile defines an interface used to represent source files whose information are stored in th...
virtual std::string getFileName() const =0
virtual PDB_Checksum getChecksumType() const =0
virtual std::unique_ptr< IPDBEnumChildren< PDBSymbolCompiland > > getCompilands() const =0
virtual std::string getChecksum() const =0
virtual uint32_t getUniqueId() const =0
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
PDB_Checksum
Specifies the hash algorithm that a source file from a PDB was hashed with.
Definition: PDBTypes.h:119
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
void dump(const SparseBitVector< ElementSize > &LHS, raw_ostream &out)