LLVM 22.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
17namespace llvm {
18namespace pdb {
19class PDBSymbolCompiland;
20template <typename ChildType> class IPDBEnumChildren;
21class NativeSession;
22
24public:
25 explicit NativeSourceFile(NativeSession &Session, uint32_t FileId,
26 const codeview::FileChecksumEntry &Checksum);
27
28 std::string getFileName() const override;
29 uint32_t getUniqueId() const override;
30 std::string getChecksum() const override;
31 PDB_Checksum getChecksumType() const override;
32 std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
33 getCompilands() const override;
34
35private:
36 NativeSession &Session;
37 uint32_t FileId;
38 const codeview::FileChecksumEntry Checksum;
39};
40} // namespace pdb
41} // namespace llvm
42#endif
static Expected< StringRef > getFileName(const DebugStringTableSubsectionRef &Strings, const DebugChecksumsSubsectionRef &Checksums, uint32_t FileID)
#define LLVM_ABI
Definition: Compiler.h:213
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