19 CComPtr<IDiaSectionContrib> DiaSection)
20 : Session(PDBSession),
Section(DiaSection) {}
23 CComPtr<IDiaSymbol>
Symbol;
24 if (FAILED(Section->get_compiland(&Symbol)))
27 auto RawSymbol = llvm::make_unique<DIARawSymbol>(Session,
Symbol);
28 return PDBSymbol::createAs<PDBSymbolCompiland>(Session, std::move(RawSymbol));
31 template <
typename ArgType>
34 HRESULT (__stdcall IDiaSectionContrib::*Method)(ArgType *)) {
36 if (S_OK == (Section->*Method)(&Value))
37 return static_cast<ArgType
>(Value);
56 &IDiaSectionContrib::get_relativeVirtualAddress);
81 &IDiaSectionContrib::get_uninitializedData);
bool hasCode() const override
This class represents lattice values for constants.
uint32_t getRelocationsCrc32() const override
bool hasCode16Bit() const override
bool isExecutable() const override
bool hasComdat() const override
bool isRemoved() const override
bool isShared() const override
ArgType PrivateGetDIAValue(IDiaSectionContrib *Section, HRESULT(__stdcall IDiaSectionContrib::*Method)(ArgType *))
DIASectionContrib(const DIASession &PDBSession, CComPtr< IDiaSectionContrib > DiaSection)
bool isDiscardable() const override
bool isNotCached() const override
bool hasUninitializedData() const override
uint32_t getRelativeVirtualAddress() const override
std::unique_ptr< PDBSymbolCompiland > getCompiland() const override
bool isNotPaged() const override
bool isWritable() const override
bool isReadable() const override
uint32_t getLength() const override
uint64_t getVirtualAddress() const override
bool hasInitializedData() const override
LLVM Value Representation.
uint32_t getCompilandId() const override
uint32_t getAddressOffset() const override
uint32_t getAddressSection() const override
uint32_t getDataCrc32() const override