LLVM  14.0.0git
NativeSourceFile.h
Go to the documentation of this file.
1 //===- NativeSourceFile.h - Native source file implementation ---*- 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_NATIVE_NATIVESOURCEFILE_H
10 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVESOURCEFILE_H
11 
16 
17 namespace llvm {
18 namespace pdb {
19 class NativeSession;
20 
22 public:
23  explicit NativeSourceFile(NativeSession &Session, uint32_t FileId,
24  const codeview::FileChecksumEntry &Checksum);
25 
26  std::string getFileName() const override;
27  uint32_t getUniqueId() const override;
28  std::string getChecksum() const override;
29  PDB_Checksum getChecksumType() const override;
30  std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
31  getCompilands() const override;
32 
33 private:
34  NativeSession &Session;
35  uint32_t FileId;
36  const codeview::FileChecksumEntry Checksum;
37 };
38 } // namespace pdb
39 } // namespace llvm
40 #endif
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::pdb::NativeSourceFile::getUniqueId
uint32_t getUniqueId() const override
Definition: NativeSourceFile.cpp:34
llvm::pdb::NativeSourceFile::NativeSourceFile
NativeSourceFile(NativeSession &Session, uint32_t FileId, const codeview::FileChecksumEntry &Checksum)
Definition: NativeSourceFile.cpp:15
llvm::pdb::IPDBSourceFile
IPDBSourceFile defines an interface used to represent source files whose information are stored in th...
Definition: IPDBSourceFile.h:23
llvm::pdb::NativeSourceFile::getCompilands
std::unique_ptr< IPDBEnumChildren< PDBSymbolCompiland > > getCompilands() const override
Definition: NativeSourceFile.cpp:45
DebugChecksumsSubsection.h
llvm::pdb::NativeSourceFile::getChecksum
std::string getChecksum() const override
Definition: NativeSourceFile.cpp:36
llvm::codeview::FileChecksumEntry
Definition: DebugChecksumsSubsection.h:31
llvm::pdb::NativeSourceFile
Definition: NativeSourceFile.h:21
uint32_t
IPDBSourceFile.h
llvm::pdb::NativeSourceFile::getFileName
std::string getFileName() const override
Definition: NativeSourceFile.cpp:19
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::NativeSession
Definition: NativeSession.h:28
PDBStringTable.h
PDBFile.h
llvm::pdb::NativeSourceFile::getChecksumType
PDB_Checksum getChecksumType() const override
Definition: NativeSourceFile.cpp:40