LLVM
16.0.0git
include
llvm
DebugInfo
PDB
Native
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
12
#include "
llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h
"
13
#include "
llvm/DebugInfo/PDB/IPDBSourceFile.h
"
14
#include "
llvm/DebugInfo/PDB/PDBTypes.h
"
15
16
namespace
llvm
{
17
namespace
pdb {
18
class
PDBSymbolCompiland;
19
template
<
typename
ChildType>
class
IPDBEnumChildren;
20
class
NativeSession;
21
22
class
NativeSourceFile
:
public
IPDBSourceFile
{
23
public
:
24
explicit
NativeSourceFile
(
NativeSession
&Session,
uint32_t
FileId,
25
const
codeview::FileChecksumEntry
&Checksum);
26
27
std::string
getFileName
()
const override
;
28
uint32_t
getUniqueId
()
const override
;
29
std::string
getChecksum
()
const override
;
30
PDB_Checksum
getChecksumType
()
const override
;
31
std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
32
getCompilands
()
const override
;
33
34
private
:
35
NativeSession
&Session;
36
uint32_t
FileId;
37
const
codeview::FileChecksumEntry
Checksum;
38
};
39
}
// namespace pdb
40
}
// namespace llvm
41
#endif
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::pdb::NativeSourceFile::getUniqueId
uint32_t getUniqueId() const override
Definition:
NativeSourceFile.cpp:36
llvm::pdb::NativeSourceFile::NativeSourceFile
NativeSourceFile(NativeSession &Session, uint32_t FileId, const codeview::FileChecksumEntry &Checksum)
Definition:
NativeSourceFile.cpp:17
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:47
DebugChecksumsSubsection.h
llvm::pdb::NativeSourceFile::getChecksum
std::string getChecksum() const override
Definition:
NativeSourceFile.cpp:38
llvm::codeview::FileChecksumEntry
Definition:
DebugChecksumsSubsection.h:33
PDBTypes.h
llvm::pdb::NativeSourceFile
Definition:
NativeSourceFile.h:22
uint32_t
IPDBSourceFile.h
llvm::pdb::NativeSourceFile::getFileName
std::string getFileName() const override
Definition:
NativeSourceFile.cpp:21
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:32
llvm::pdb::NativeSourceFile::getChecksumType
PDB_Checksum getChecksumType() const override
Definition:
NativeSourceFile.cpp:42
Generated on Tue Aug 16 2022 17:24:19 for LLVM by
1.8.17