LLVM 20.0.0git
DIASourceFile.h
Go to the documentation of this file.
1//===- DIASourceFile.h - DIA implementation of IPDBSourceFile ---*- 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_DIA_DIASOURCEFILE_H
10#define LLVM_DEBUGINFO_PDB_DIA_DIASOURCEFILE_H
11
12#include "DIASupport.h"
14
15namespace llvm {
16namespace pdb {
17class DIASession;
18
20public:
21 explicit DIASourceFile(const DIASession &Session,
22 CComPtr<IDiaSourceFile> DiaSourceFile);
23
24 std::string getFileName() const override;
25 uint32_t getUniqueId() const override;
26 std::string getChecksum() const override;
27 PDB_Checksum getChecksumType() const override;
28 std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
29 getCompilands() const override;
30
31 CComPtr<IDiaSourceFile> getDiaFile() const { return SourceFile; }
32
33private:
34 const DIASession &Session;
35 CComPtr<IDiaSourceFile> SourceFile;
36};
37}
38}
39
40#endif
uint32_t getUniqueId() const override
CComPtr< IDiaSourceFile > getDiaFile() const
Definition: DIASourceFile.h:31
std::string getFileName() const override
std::unique_ptr< IPDBEnumChildren< PDBSymbolCompiland > > getCompilands() const override
std::string getChecksum() const override
PDB_Checksum getChecksumType() const override
IPDBSourceFile defines an interface used to represent source files whose information are stored in th...
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