123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733 |
- //===- NativeRawSymbol.cpp - Native implementation of IPDBRawSymbol -------===//
- //
- // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
- // See https://llvm.org/LICENSE.txt for license information.
- // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- //
- //===----------------------------------------------------------------------===//
- #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
- #include "llvm/DebugInfo/PDB/IPDBLineNumber.h"
- #include "llvm/DebugInfo/PDB/Native/NativeSession.h"
- #include "llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h"
- using namespace llvm;
- using namespace llvm::pdb;
- NativeRawSymbol::NativeRawSymbol(NativeSession &PDBSession, PDB_SymType Tag,
- SymIndexId SymbolId)
- : Session(PDBSession), Tag(Tag), SymbolId(SymbolId) {}
- void NativeRawSymbol::dump(raw_ostream &OS, int Indent,
- PdbSymbolIdField ShowIdFields,
- PdbSymbolIdField RecurseIdFields) const {
- dumpSymbolIdField(OS, "symIndexId", SymbolId, Indent, Session,
- PdbSymbolIdField::SymIndexId, ShowIdFields,
- RecurseIdFields);
- dumpSymbolField(OS, "symTag", Tag, Indent);
- }
- std::unique_ptr<IPDBEnumSymbols>
- NativeRawSymbol::findChildren(PDB_SymType Type) const {
- return std::make_unique<NullEnumerator<PDBSymbol>>();
- }
- std::unique_ptr<IPDBEnumSymbols>
- NativeRawSymbol::findChildren(PDB_SymType Type, StringRef Name,
- PDB_NameSearchFlags Flags) const {
- return std::make_unique<NullEnumerator<PDBSymbol>>();
- }
- std::unique_ptr<IPDBEnumSymbols>
- NativeRawSymbol::findChildrenByAddr(PDB_SymType Type, StringRef Name,
- PDB_NameSearchFlags Flags, uint32_t Section, uint32_t Offset) const {
- return std::make_unique<NullEnumerator<PDBSymbol>>();
- }
- std::unique_ptr<IPDBEnumSymbols>
- NativeRawSymbol::findChildrenByVA(PDB_SymType Type, StringRef Name,
- PDB_NameSearchFlags Flags, uint64_t VA) const {
- return std::make_unique<NullEnumerator<PDBSymbol>>();
- }
- std::unique_ptr<IPDBEnumSymbols>
- NativeRawSymbol::findChildrenByRVA(PDB_SymType Type, StringRef Name,
- PDB_NameSearchFlags Flags, uint32_t RVA) const {
- return std::make_unique<NullEnumerator<PDBSymbol>>();
- }
- std::unique_ptr<IPDBEnumSymbols>
- NativeRawSymbol::findInlineFramesByAddr(uint32_t Section,
- uint32_t Offset) const {
- return std::make_unique<NullEnumerator<PDBSymbol>>();
- }
- std::unique_ptr<IPDBEnumSymbols>
- NativeRawSymbol::findInlineFramesByRVA(uint32_t RVA) const {
- return std::make_unique<NullEnumerator<PDBSymbol>>();
- }
- std::unique_ptr<IPDBEnumSymbols>
- NativeRawSymbol::findInlineFramesByVA(uint64_t VA) const {
- return std::make_unique<NullEnumerator<PDBSymbol>>();
- }
- std::unique_ptr<IPDBEnumLineNumbers>
- NativeRawSymbol::findInlineeLines() const {
- return std::make_unique<NullEnumerator<IPDBLineNumber>>();
- }
- std::unique_ptr<IPDBEnumLineNumbers>
- NativeRawSymbol::findInlineeLinesByAddr(uint32_t Section, uint32_t Offset,
- uint32_t Length) const {
- return std::make_unique<NullEnumerator<IPDBLineNumber>>();
- }
- std::unique_ptr<IPDBEnumLineNumbers>
- NativeRawSymbol::findInlineeLinesByRVA(uint32_t RVA, uint32_t Length) const {
- return std::make_unique<NullEnumerator<IPDBLineNumber>>();
- }
- std::unique_ptr<IPDBEnumLineNumbers>
- NativeRawSymbol::findInlineeLinesByVA(uint64_t VA, uint32_t Length) const {
- return std::make_unique<NullEnumerator<IPDBLineNumber>>();
- }
- void NativeRawSymbol::getDataBytes(SmallVector<uint8_t, 32> &bytes) const {
- bytes.clear();
- }
- PDB_MemberAccess NativeRawSymbol::getAccess() const {
- return PDB_MemberAccess::Private;
- }
- uint32_t NativeRawSymbol::getAddressOffset() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getAddressSection() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getAge() const {
- return 0;
- }
- SymIndexId NativeRawSymbol::getArrayIndexTypeId() const { return 0; }
- void NativeRawSymbol::getBackEndVersion(VersionInfo &Version) const {
- Version.Major = 0;
- Version.Minor = 0;
- Version.Build = 0;
- Version.QFE = 0;
- }
- uint32_t NativeRawSymbol::getBaseDataOffset() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getBaseDataSlot() const {
- return 0;
- }
- SymIndexId NativeRawSymbol::getBaseSymbolId() const { return 0; }
- PDB_BuiltinType NativeRawSymbol::getBuiltinType() const {
- return PDB_BuiltinType::None;
- }
- uint32_t NativeRawSymbol::getBitPosition() const {
- return 0;
- }
- PDB_CallingConv NativeRawSymbol::getCallingConvention() const {
- return PDB_CallingConv::FarStdCall;
- }
- SymIndexId NativeRawSymbol::getClassParentId() const { return 0; }
- std::string NativeRawSymbol::getCompilerName() const {
- return {};
- }
- uint32_t NativeRawSymbol::getCount() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getCountLiveRanges() const {
- return 0;
- }
- void NativeRawSymbol::getFrontEndVersion(VersionInfo &Version) const {
- Version.Major = 0;
- Version.Minor = 0;
- Version.Build = 0;
- Version.QFE = 0;
- }
- PDB_Lang NativeRawSymbol::getLanguage() const {
- return PDB_Lang::Cobol;
- }
- SymIndexId NativeRawSymbol::getLexicalParentId() const { return 0; }
- std::string NativeRawSymbol::getLibraryName() const {
- return {};
- }
- uint32_t NativeRawSymbol::getLiveRangeStartAddressOffset() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getLiveRangeStartAddressSection() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getLiveRangeStartRelativeVirtualAddress() const {
- return 0;
- }
- codeview::RegisterId NativeRawSymbol::getLocalBasePointerRegisterId() const {
- return codeview::RegisterId::EAX;
- }
- SymIndexId NativeRawSymbol::getLowerBoundId() const { return 0; }
- uint32_t NativeRawSymbol::getMemorySpaceKind() const {
- return 0;
- }
- std::string NativeRawSymbol::getName() const {
- return {};
- }
- uint32_t NativeRawSymbol::getNumberOfAcceleratorPointerTags() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getNumberOfColumns() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getNumberOfModifiers() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getNumberOfRegisterIndices() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getNumberOfRows() const {
- return 0;
- }
- std::string NativeRawSymbol::getObjectFileName() const {
- return {};
- }
- uint32_t NativeRawSymbol::getOemId() const {
- return 0;
- }
- SymIndexId NativeRawSymbol::getOemSymbolId() const { return 0; }
- uint32_t NativeRawSymbol::getOffsetInUdt() const {
- return 0;
- }
- PDB_Cpu NativeRawSymbol::getPlatform() const {
- return PDB_Cpu::Intel8080;
- }
- uint32_t NativeRawSymbol::getRank() const {
- return 0;
- }
- codeview::RegisterId NativeRawSymbol::getRegisterId() const {
- return codeview::RegisterId::EAX;
- }
- uint32_t NativeRawSymbol::getRegisterType() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getRelativeVirtualAddress() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getSamplerSlot() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getSignature() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getSizeInUdt() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getSlot() const {
- return 0;
- }
- std::string NativeRawSymbol::getSourceFileName() const {
- return {};
- }
- std::unique_ptr<IPDBLineNumber>
- NativeRawSymbol::getSrcLineOnTypeDefn() const {
- return nullptr;
- }
- uint32_t NativeRawSymbol::getStride() const {
- return 0;
- }
- SymIndexId NativeRawSymbol::getSubTypeId() const { return 0; }
- std::string NativeRawSymbol::getSymbolsFileName() const { return {}; }
- SymIndexId NativeRawSymbol::getSymIndexId() const { return SymbolId; }
- uint32_t NativeRawSymbol::getTargetOffset() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getTargetRelativeVirtualAddress() const {
- return 0;
- }
- uint64_t NativeRawSymbol::getTargetVirtualAddress() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getTargetSection() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getTextureSlot() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getTimeStamp() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getToken() const {
- return 0;
- }
- SymIndexId NativeRawSymbol::getTypeId() const { return 0; }
- uint32_t NativeRawSymbol::getUavSlot() const {
- return 0;
- }
- std::string NativeRawSymbol::getUndecoratedName() const {
- return {};
- }
- std::string NativeRawSymbol::getUndecoratedNameEx(
- PDB_UndnameFlags Flags) const {
- return {};
- }
- SymIndexId NativeRawSymbol::getUnmodifiedTypeId() const { return 0; }
- SymIndexId NativeRawSymbol::getUpperBoundId() const { return 0; }
- Variant NativeRawSymbol::getValue() const {
- return Variant();
- }
- uint32_t NativeRawSymbol::getVirtualBaseDispIndex() const {
- return 0;
- }
- uint32_t NativeRawSymbol::getVirtualBaseOffset() const {
- return 0;
- }
- SymIndexId NativeRawSymbol::getVirtualTableShapeId() const { return 0; }
- std::unique_ptr<PDBSymbolTypeBuiltin>
- NativeRawSymbol::getVirtualBaseTableType() const {
- return nullptr;
- }
- PDB_DataKind NativeRawSymbol::getDataKind() const {
- return PDB_DataKind::Unknown;
- }
- PDB_SymType NativeRawSymbol::getSymTag() const { return Tag; }
- codeview::GUID NativeRawSymbol::getGuid() const { return codeview::GUID{{0}}; }
- int32_t NativeRawSymbol::getOffset() const {
- return 0;
- }
- int32_t NativeRawSymbol::getThisAdjust() const {
- return 0;
- }
- int32_t NativeRawSymbol::getVirtualBasePointerOffset() const {
- return 0;
- }
- PDB_LocType NativeRawSymbol::getLocationType() const {
- return PDB_LocType::Null;
- }
- PDB_Machine NativeRawSymbol::getMachineType() const {
- return PDB_Machine::Invalid;
- }
- codeview::ThunkOrdinal NativeRawSymbol::getThunkOrdinal() const {
- return codeview::ThunkOrdinal::Standard;
- }
- uint64_t NativeRawSymbol::getLength() const {
- return 0;
- }
- uint64_t NativeRawSymbol::getLiveRangeLength() const {
- return 0;
- }
- uint64_t NativeRawSymbol::getVirtualAddress() const {
- return 0;
- }
- PDB_UdtType NativeRawSymbol::getUdtKind() const {
- return PDB_UdtType::Struct;
- }
- bool NativeRawSymbol::hasConstructor() const {
- return false;
- }
- bool NativeRawSymbol::hasCustomCallingConvention() const {
- return false;
- }
- bool NativeRawSymbol::hasFarReturn() const {
- return false;
- }
- bool NativeRawSymbol::isCode() const {
- return false;
- }
- bool NativeRawSymbol::isCompilerGenerated() const {
- return false;
- }
- bool NativeRawSymbol::isConstType() const {
- return false;
- }
- bool NativeRawSymbol::isEditAndContinueEnabled() const {
- return false;
- }
- bool NativeRawSymbol::isFunction() const {
- return false;
- }
- bool NativeRawSymbol::getAddressTaken() const {
- return false;
- }
- bool NativeRawSymbol::getNoStackOrdering() const {
- return false;
- }
- bool NativeRawSymbol::hasAlloca() const {
- return false;
- }
- bool NativeRawSymbol::hasAssignmentOperator() const {
- return false;
- }
- bool NativeRawSymbol::hasCTypes() const {
- return false;
- }
- bool NativeRawSymbol::hasCastOperator() const {
- return false;
- }
- bool NativeRawSymbol::hasDebugInfo() const {
- return false;
- }
- bool NativeRawSymbol::hasEH() const {
- return false;
- }
- bool NativeRawSymbol::hasEHa() const {
- return false;
- }
- bool NativeRawSymbol::hasInlAsm() const {
- return false;
- }
- bool NativeRawSymbol::hasInlineAttribute() const {
- return false;
- }
- bool NativeRawSymbol::hasInterruptReturn() const {
- return false;
- }
- bool NativeRawSymbol::hasFramePointer() const {
- return false;
- }
- bool NativeRawSymbol::hasLongJump() const {
- return false;
- }
- bool NativeRawSymbol::hasManagedCode() const {
- return false;
- }
- bool NativeRawSymbol::hasNestedTypes() const {
- return false;
- }
- bool NativeRawSymbol::hasNoInlineAttribute() const {
- return false;
- }
- bool NativeRawSymbol::hasNoReturnAttribute() const {
- return false;
- }
- bool NativeRawSymbol::hasOptimizedCodeDebugInfo() const {
- return false;
- }
- bool NativeRawSymbol::hasOverloadedOperator() const {
- return false;
- }
- bool NativeRawSymbol::hasSEH() const {
- return false;
- }
- bool NativeRawSymbol::hasSecurityChecks() const {
- return false;
- }
- bool NativeRawSymbol::hasSetJump() const {
- return false;
- }
- bool NativeRawSymbol::hasStrictGSCheck() const {
- return false;
- }
- bool NativeRawSymbol::isAcceleratorGroupSharedLocal() const {
- return false;
- }
- bool NativeRawSymbol::isAcceleratorPointerTagLiveRange() const {
- return false;
- }
- bool NativeRawSymbol::isAcceleratorStubFunction() const {
- return false;
- }
- bool NativeRawSymbol::isAggregated() const {
- return false;
- }
- bool NativeRawSymbol::isIntroVirtualFunction() const {
- return false;
- }
- bool NativeRawSymbol::isCVTCIL() const {
- return false;
- }
- bool NativeRawSymbol::isConstructorVirtualBase() const {
- return false;
- }
- bool NativeRawSymbol::isCxxReturnUdt() const {
- return false;
- }
- bool NativeRawSymbol::isDataAligned() const {
- return false;
- }
- bool NativeRawSymbol::isHLSLData() const {
- return false;
- }
- bool NativeRawSymbol::isHotpatchable() const {
- return false;
- }
- bool NativeRawSymbol::isIndirectVirtualBaseClass() const {
- return false;
- }
- bool NativeRawSymbol::isInterfaceUdt() const {
- return false;
- }
- bool NativeRawSymbol::isIntrinsic() const {
- return false;
- }
- bool NativeRawSymbol::isLTCG() const {
- return false;
- }
- bool NativeRawSymbol::isLocationControlFlowDependent() const {
- return false;
- }
- bool NativeRawSymbol::isMSILNetmodule() const {
- return false;
- }
- bool NativeRawSymbol::isMatrixRowMajor() const {
- return false;
- }
- bool NativeRawSymbol::isManagedCode() const {
- return false;
- }
- bool NativeRawSymbol::isMSILCode() const {
- return false;
- }
- bool NativeRawSymbol::isMultipleInheritance() const {
- return false;
- }
- bool NativeRawSymbol::isNaked() const {
- return false;
- }
- bool NativeRawSymbol::isNested() const {
- return false;
- }
- bool NativeRawSymbol::isOptimizedAway() const {
- return false;
- }
- bool NativeRawSymbol::isPacked() const {
- return false;
- }
- bool NativeRawSymbol::isPointerBasedOnSymbolValue() const {
- return false;
- }
- bool NativeRawSymbol::isPointerToDataMember() const {
- return false;
- }
- bool NativeRawSymbol::isPointerToMemberFunction() const {
- return false;
- }
- bool NativeRawSymbol::isPureVirtual() const {
- return false;
- }
- bool NativeRawSymbol::isRValueReference() const {
- return false;
- }
- bool NativeRawSymbol::isRefUdt() const {
- return false;
- }
- bool NativeRawSymbol::isReference() const {
- return false;
- }
- bool NativeRawSymbol::isRestrictedType() const {
- return false;
- }
- bool NativeRawSymbol::isReturnValue() const {
- return false;
- }
- bool NativeRawSymbol::isSafeBuffers() const {
- return false;
- }
- bool NativeRawSymbol::isScoped() const {
- return false;
- }
- bool NativeRawSymbol::isSdl() const {
- return false;
- }
- bool NativeRawSymbol::isSingleInheritance() const {
- return false;
- }
- bool NativeRawSymbol::isSplitted() const {
- return false;
- }
- bool NativeRawSymbol::isStatic() const {
- return false;
- }
- bool NativeRawSymbol::hasPrivateSymbols() const {
- return false;
- }
- bool NativeRawSymbol::isUnalignedType() const {
- return false;
- }
- bool NativeRawSymbol::isUnreached() const {
- return false;
- }
- bool NativeRawSymbol::isValueUdt() const {
- return false;
- }
- bool NativeRawSymbol::isVirtual() const {
- return false;
- }
- bool NativeRawSymbol::isVirtualBaseClass() const {
- return false;
- }
- bool NativeRawSymbol::isVirtualInheritance() const {
- return false;
- }
- bool NativeRawSymbol::isVolatileType() const {
- return false;
- }
- bool NativeRawSymbol::wasInlined() const {
- return false;
- }
- std::string NativeRawSymbol::getUnused() const {
- return {};
- }
|