LLVM  14.0.0git
DIASectionContrib.h
Go to the documentation of this file.
1 //===- DIASectionContrib.h - DIA Impl. of IPDBSectionContrib ------ 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_DIASECTIONCONTRIB_H
10 #define LLVM_DEBUGINFO_PDB_DIA_DIASECTIONCONTRIB_H
11 
12 #include "DIASupport.h"
14 
15 namespace llvm {
16 namespace pdb {
17 class DIASession;
18 
20 public:
21  explicit DIASectionContrib(const DIASession &PDBSession,
22  CComPtr<IDiaSectionContrib> DiaSection);
23 
24  std::unique_ptr<PDBSymbolCompiland> getCompiland() const override;
25  uint32_t getAddressSection() const override;
26  uint32_t getAddressOffset() const override;
27  uint32_t getRelativeVirtualAddress() const override;
28  uint64_t getVirtualAddress() const override;
29  uint32_t getLength() const override;
30  bool isNotPaged() const override;
31  bool hasCode() const override;
32  bool hasCode16Bit() const override;
33  bool hasInitializedData() const override;
34  bool hasUninitializedData() const override;
35  bool isRemoved() const override;
36  bool hasComdat() const override;
37  bool isDiscardable() const override;
38  bool isNotCached() const override;
39  bool isShared() const override;
40  bool isExecutable() const override;
41  bool isReadable() const override;
42  bool isWritable() const override;
43  uint32_t getDataCrc32() const override;
44  uint32_t getRelocationsCrc32() const override;
45  uint32_t getCompilandId() const override;
46 
47 private:
48  const DIASession &Session;
49  CComPtr<IDiaSectionContrib> Section;
50 };
51 } // namespace pdb
52 } // namespace llvm
53 
54 #endif // LLVM_DEBUGINFO_PDB_DIA_DIASECTIONCONTRIB_H
DIASupport.h
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
llvm::pdb::DIASectionContrib::isReadable
bool isReadable() const override
Definition: DIASectionContrib.cpp:107
llvm::pdb::DIASectionContrib::getRelocationsCrc32
uint32_t getRelocationsCrc32() const override
Definition: DIASectionContrib.cpp:119
llvm::pdb::DIASession
Definition: DIASession.h:22
llvm::pdb::DIASectionContrib::getCompiland
std::unique_ptr< PDBSymbolCompiland > getCompiland() const override
Definition: DIASectionContrib.cpp:21
llvm::pdb::DIASectionContrib::hasCode16Bit
bool hasCode16Bit() const override
Definition: DIASectionContrib.cpp:70
llvm::pdb::DIASectionContrib
Definition: DIASectionContrib.h:19
llvm::pdb::DIASectionContrib::isExecutable
bool isExecutable() const override
Definition: DIASectionContrib.cpp:103
llvm::pdb::DIASectionContrib::getCompilandId
uint32_t getCompilandId() const override
Definition: DIASectionContrib.cpp:123
llvm::pdb::DIASectionContrib::getDataCrc32
uint32_t getDataCrc32() const override
Definition: DIASectionContrib.cpp:115
IPDBSectionContrib.h
llvm::pdb::DIASectionContrib::getAddressSection
uint32_t getAddressSection() const override
Definition: DIASectionContrib.cpp:41
llvm::pdb::DIASectionContrib::hasCode
bool hasCode() const override
Definition: DIASectionContrib.cpp:66
llvm::pdb::DIASectionContrib::getVirtualAddress
uint64_t getVirtualAddress() const override
Definition: DIASectionContrib.cpp:49
llvm::pdb::DIASectionContrib::getAddressOffset
uint32_t getAddressOffset() const override
Definition: DIASectionContrib.cpp:45
llvm::pdb::DIASectionContrib::hasUninitializedData
bool hasUninitializedData() const override
Definition: DIASectionContrib.cpp:78
uint64_t
llvm::pdb::DIASectionContrib::isDiscardable
bool isDiscardable() const override
Definition: DIASectionContrib.cpp:91
llvm::pdb::DIASectionContrib::isShared
bool isShared() const override
Definition: DIASectionContrib.cpp:99
llvm::pdb::DIASectionContrib::getLength
uint32_t getLength() const override
Definition: DIASectionContrib.cpp:58
uint32_t
llvm::pdb::DIASectionContrib::DIASectionContrib
DIASectionContrib(const DIASession &PDBSession, CComPtr< IDiaSectionContrib > DiaSection)
Definition: DIASectionContrib.cpp:17
llvm::pdb::IPDBSectionContrib
IPDBSectionContrib defines an interface used to represent section contributions whose information are...
Definition: IPDBSectionContrib.h:19
llvm::pdb::DIASectionContrib::getRelativeVirtualAddress
uint32_t getRelativeVirtualAddress() const override
Definition: DIASectionContrib.cpp:53
llvm::pdb::DIASectionContrib::hasComdat
bool hasComdat() const override
Definition: DIASectionContrib.cpp:87
llvm::pdb::DIASectionContrib::hasInitializedData
bool hasInitializedData() const override
Definition: DIASectionContrib.cpp:74
llvm::pdb::DIASectionContrib::isNotPaged
bool isNotPaged() const override
Definition: DIASectionContrib.cpp:62
llvm::pdb::DIASectionContrib::isRemoved
bool isRemoved() const override
Definition: DIASectionContrib.cpp:83
llvm::pdb::DIASectionContrib::isNotCached
bool isNotCached() const override
Definition: DIASectionContrib.cpp:95
llvm::pdb::DIASectionContrib::isWritable
bool isWritable() const override
Definition: DIASectionContrib.cpp:111