Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 1 | //===- DIARawSymbol.cpp - DIA implementation of IPDBRawSymbol ---*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
Zachary Turner | a554917 | 2015-02-10 22:43:25 +0000 | [diff] [blame] | 10 | #include "llvm/DebugInfo/PDB/PDBExtras.h" |
Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 11 | #include "llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h" |
| 12 | #include "llvm/DebugInfo/PDB/DIA/DIARawSymbol.h" |
| 13 | #include "llvm/DebugInfo/PDB/DIA/DIASession.h" |
| 14 | #include "llvm/Support/ConvertUTF.h" |
| 15 | #include "llvm/Support/raw_ostream.h" |
| 16 | |
| 17 | using namespace llvm; |
| 18 | |
| 19 | namespace { |
| 20 | template <typename ArgType, typename RetType = ArgType> |
| 21 | RetType PrivateGetDIAValue(IDiaSymbol *Symbol, |
| 22 | HRESULT (__stdcall IDiaSymbol::*Method)(ArgType *)) { |
| 23 | ArgType Value; |
| 24 | if (S_OK == (Symbol->*Method)(&Value)) |
| 25 | return static_cast<RetType>(Value); |
| 26 | |
| 27 | return RetType(); |
| 28 | } |
| 29 | |
| 30 | std::string |
| 31 | PrivateGetDIAValue(IDiaSymbol *Symbol, |
| 32 | HRESULT (__stdcall IDiaSymbol::*Method)(BSTR *)) { |
| 33 | CComBSTR Result16; |
| 34 | if (S_OK != (Symbol->*Method)(&Result16)) |
| 35 | return std::string(); |
| 36 | |
| 37 | const char *SrcBytes = reinterpret_cast<const char *>(Result16.m_str); |
| 38 | llvm::ArrayRef<char> SrcByteArray(SrcBytes, Result16.ByteLength()); |
| 39 | std::string Result8; |
| 40 | if (!llvm::convertUTF16ToUTF8String(SrcByteArray, Result8)) |
| 41 | return std::string(); |
| 42 | return Result8; |
| 43 | } |
| 44 | |
| 45 | PDB_UniqueId |
| 46 | PrivateGetDIAValue(IDiaSymbol *Symbol, |
| 47 | HRESULT (__stdcall IDiaSymbol::*Method)(GUID *)) { |
| 48 | GUID Result; |
| 49 | if (S_OK != (Symbol->*Method)(&Result)) |
| 50 | return PDB_UniqueId(); |
| 51 | |
| 52 | static_assert(sizeof(PDB_UniqueId) == sizeof(GUID), |
| 53 | "PDB_UniqueId is the wrong size!"); |
| 54 | PDB_UniqueId IdResult; |
| 55 | ::memcpy(&IdResult, &Result, sizeof(GUID)); |
| 56 | return IdResult; |
| 57 | } |
Zachary Turner | a554917 | 2015-02-10 22:43:25 +0000 | [diff] [blame] | 58 | |
| 59 | template <typename ArgType> |
| 60 | void DumpDIAValue(llvm::raw_ostream &OS, int Indent, StringRef Name, |
| 61 | IDiaSymbol *Symbol, |
| 62 | HRESULT (__stdcall IDiaSymbol::*Method)(ArgType *)) { |
| 63 | ArgType Value; |
| 64 | if (S_OK == (Symbol->*Method)(&Value)) { |
| 65 | OS.indent(Indent); |
| 66 | OS << Name << ": " << Value << "\n"; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | void DumpDIAValue(llvm::raw_ostream &OS, int Indent, StringRef Name, |
| 71 | IDiaSymbol *Symbol, |
| 72 | HRESULT (__stdcall IDiaSymbol::*Method)(BSTR *)) { |
| 73 | BSTR Value = nullptr; |
| 74 | if (S_OK != (Symbol->*Method)(&Value)) |
| 75 | return; |
| 76 | const char *Bytes = reinterpret_cast<const char *>(Value); |
| 77 | ArrayRef<char> ByteArray(Bytes, ::SysStringByteLen(Value)); |
| 78 | std::string Result; |
| 79 | if (llvm::convertUTF16ToUTF8String(ByteArray, Result)) { |
| 80 | OS.indent(Indent); |
| 81 | OS << Name << ": " << Result << "\n"; |
| 82 | } |
| 83 | ::SysFreeString(Value); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | namespace llvm { |
| 88 | raw_ostream &operator<<(raw_ostream &OS, const GUID &Guid) { |
| 89 | const PDB_UniqueId *Id = reinterpret_cast<const PDB_UniqueId *>(&Guid); |
| 90 | OS << *Id; |
| 91 | return OS; |
| 92 | } |
Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 93 | } |
| 94 | |
| 95 | DIARawSymbol::DIARawSymbol(const DIASession &PDBSession, |
| 96 | CComPtr<IDiaSymbol> DiaSymbol) |
| 97 | : Session(PDBSession), Symbol(DiaSymbol) {} |
| 98 | |
Zachary Turner | a554917 | 2015-02-10 22:43:25 +0000 | [diff] [blame] | 99 | #define RAW_METHOD_DUMP(Stream, Method) \ |
| 100 | DumpDIAValue(Stream, Indent, StringRef(#Method), Symbol, &IDiaSymbol::Method); |
| 101 | |
| 102 | void DIARawSymbol::dump(raw_ostream &OS, int Indent, |
| 103 | PDB_DumpLevel Level) const { |
| 104 | RAW_METHOD_DUMP(OS, get_access) |
| 105 | RAW_METHOD_DUMP(OS, get_addressOffset) |
| 106 | RAW_METHOD_DUMP(OS, get_addressSection) |
| 107 | RAW_METHOD_DUMP(OS, get_age) |
| 108 | RAW_METHOD_DUMP(OS, get_arrayIndexTypeId) |
| 109 | RAW_METHOD_DUMP(OS, get_backEndMajor) |
| 110 | RAW_METHOD_DUMP(OS, get_backEndMinor) |
| 111 | RAW_METHOD_DUMP(OS, get_backEndBuild) |
| 112 | RAW_METHOD_DUMP(OS, get_backEndQFE) |
| 113 | RAW_METHOD_DUMP(OS, get_baseDataOffset) |
| 114 | RAW_METHOD_DUMP(OS, get_baseDataSlot) |
| 115 | RAW_METHOD_DUMP(OS, get_baseSymbolId) |
| 116 | RAW_METHOD_DUMP(OS, get_builtInKind) |
| 117 | RAW_METHOD_DUMP(OS, get_bitPosition) |
| 118 | RAW_METHOD_DUMP(OS, get_callingConvention) |
| 119 | RAW_METHOD_DUMP(OS, get_classParentId) |
| 120 | RAW_METHOD_DUMP(OS, get_compilerName) |
| 121 | RAW_METHOD_DUMP(OS, get_count) |
| 122 | RAW_METHOD_DUMP(OS, get_countLiveRanges) |
| 123 | RAW_METHOD_DUMP(OS, get_frontEndMajor) |
| 124 | RAW_METHOD_DUMP(OS, get_frontEndMinor) |
| 125 | RAW_METHOD_DUMP(OS, get_frontEndBuild) |
| 126 | RAW_METHOD_DUMP(OS, get_frontEndQFE) |
| 127 | RAW_METHOD_DUMP(OS, get_count) |
| 128 | RAW_METHOD_DUMP(OS, get_lexicalParentId) |
| 129 | RAW_METHOD_DUMP(OS, get_libraryName) |
| 130 | RAW_METHOD_DUMP(OS, get_liveRangeStartAddressOffset) |
| 131 | RAW_METHOD_DUMP(OS, get_liveRangeStartAddressSection) |
| 132 | RAW_METHOD_DUMP(OS, get_liveRangeStartRelativeVirtualAddress) |
| 133 | RAW_METHOD_DUMP(OS, get_localBasePointerRegisterId) |
| 134 | RAW_METHOD_DUMP(OS, get_lowerBoundId) |
| 135 | RAW_METHOD_DUMP(OS, get_memorySpaceKind) |
| 136 | RAW_METHOD_DUMP(OS, get_name) |
| 137 | RAW_METHOD_DUMP(OS, get_numberOfAcceleratorPointerTags) |
| 138 | RAW_METHOD_DUMP(OS, get_numberOfColumns) |
| 139 | RAW_METHOD_DUMP(OS, get_numberOfModifiers) |
| 140 | RAW_METHOD_DUMP(OS, get_numberOfRegisterIndices) |
| 141 | RAW_METHOD_DUMP(OS, get_numberOfRows) |
| 142 | RAW_METHOD_DUMP(OS, get_objectFileName) |
| 143 | RAW_METHOD_DUMP(OS, get_oemId) |
| 144 | RAW_METHOD_DUMP(OS, get_oemSymbolId) |
| 145 | RAW_METHOD_DUMP(OS, get_offsetInUdt) |
| 146 | RAW_METHOD_DUMP(OS, get_platform) |
| 147 | RAW_METHOD_DUMP(OS, get_rank) |
| 148 | RAW_METHOD_DUMP(OS, get_registerId) |
| 149 | RAW_METHOD_DUMP(OS, get_registerType) |
| 150 | RAW_METHOD_DUMP(OS, get_relativeVirtualAddress) |
| 151 | RAW_METHOD_DUMP(OS, get_samplerSlot) |
| 152 | RAW_METHOD_DUMP(OS, get_signature) |
| 153 | RAW_METHOD_DUMP(OS, get_sizeInUdt) |
| 154 | RAW_METHOD_DUMP(OS, get_slot) |
| 155 | RAW_METHOD_DUMP(OS, get_sourceFileName) |
| 156 | RAW_METHOD_DUMP(OS, get_stride) |
| 157 | RAW_METHOD_DUMP(OS, get_subTypeId) |
| 158 | RAW_METHOD_DUMP(OS, get_symbolsFileName) |
| 159 | RAW_METHOD_DUMP(OS, get_symIndexId) |
| 160 | RAW_METHOD_DUMP(OS, get_targetOffset) |
| 161 | RAW_METHOD_DUMP(OS, get_targetRelativeVirtualAddress) |
| 162 | RAW_METHOD_DUMP(OS, get_targetVirtualAddress) |
| 163 | RAW_METHOD_DUMP(OS, get_targetSection) |
| 164 | RAW_METHOD_DUMP(OS, get_textureSlot) |
| 165 | RAW_METHOD_DUMP(OS, get_timeStamp) |
| 166 | RAW_METHOD_DUMP(OS, get_token) |
| 167 | RAW_METHOD_DUMP(OS, get_typeId) |
| 168 | RAW_METHOD_DUMP(OS, get_uavSlot) |
| 169 | RAW_METHOD_DUMP(OS, get_undecoratedName) |
| 170 | RAW_METHOD_DUMP(OS, get_unmodifiedTypeId) |
| 171 | RAW_METHOD_DUMP(OS, get_upperBoundId) |
| 172 | RAW_METHOD_DUMP(OS, get_virtualBaseDispIndex) |
| 173 | RAW_METHOD_DUMP(OS, get_virtualBaseOffset) |
| 174 | RAW_METHOD_DUMP(OS, get_virtualTableShapeId) |
| 175 | RAW_METHOD_DUMP(OS, get_dataKind) |
| 176 | RAW_METHOD_DUMP(OS, get_symTag) |
| 177 | RAW_METHOD_DUMP(OS, get_guid) |
| 178 | RAW_METHOD_DUMP(OS, get_offset) |
| 179 | RAW_METHOD_DUMP(OS, get_thisAdjust) |
| 180 | RAW_METHOD_DUMP(OS, get_virtualBasePointerOffset) |
| 181 | RAW_METHOD_DUMP(OS, get_locationType) |
| 182 | RAW_METHOD_DUMP(OS, get_machineType) |
| 183 | RAW_METHOD_DUMP(OS, get_thunkOrdinal) |
| 184 | RAW_METHOD_DUMP(OS, get_length) |
| 185 | RAW_METHOD_DUMP(OS, get_liveRangeLength) |
| 186 | RAW_METHOD_DUMP(OS, get_virtualAddress) |
| 187 | RAW_METHOD_DUMP(OS, get_udtKind) |
| 188 | RAW_METHOD_DUMP(OS, get_constructor) |
| 189 | RAW_METHOD_DUMP(OS, get_customCallingConvention) |
| 190 | RAW_METHOD_DUMP(OS, get_farReturn) |
| 191 | RAW_METHOD_DUMP(OS, get_code) |
| 192 | RAW_METHOD_DUMP(OS, get_compilerGenerated) |
| 193 | RAW_METHOD_DUMP(OS, get_constType) |
| 194 | RAW_METHOD_DUMP(OS, get_editAndContinueEnabled) |
| 195 | RAW_METHOD_DUMP(OS, get_function) |
| 196 | RAW_METHOD_DUMP(OS, get_stride) |
| 197 | RAW_METHOD_DUMP(OS, get_noStackOrdering) |
| 198 | RAW_METHOD_DUMP(OS, get_hasAlloca) |
| 199 | RAW_METHOD_DUMP(OS, get_hasAssignmentOperator) |
| 200 | RAW_METHOD_DUMP(OS, get_isCTypes) |
| 201 | RAW_METHOD_DUMP(OS, get_hasCastOperator) |
| 202 | RAW_METHOD_DUMP(OS, get_hasDebugInfo) |
| 203 | RAW_METHOD_DUMP(OS, get_hasEH) |
| 204 | RAW_METHOD_DUMP(OS, get_hasEHa) |
| 205 | RAW_METHOD_DUMP(OS, get_hasInlAsm) |
| 206 | RAW_METHOD_DUMP(OS, get_framePointerPresent) |
| 207 | RAW_METHOD_DUMP(OS, get_inlSpec) |
| 208 | RAW_METHOD_DUMP(OS, get_interruptReturn) |
| 209 | RAW_METHOD_DUMP(OS, get_hasLongJump) |
| 210 | RAW_METHOD_DUMP(OS, get_hasManagedCode) |
| 211 | RAW_METHOD_DUMP(OS, get_hasNestedTypes) |
| 212 | RAW_METHOD_DUMP(OS, get_noInline) |
| 213 | RAW_METHOD_DUMP(OS, get_noReturn) |
| 214 | RAW_METHOD_DUMP(OS, get_optimizedCodeDebugInfo) |
| 215 | RAW_METHOD_DUMP(OS, get_overloadedOperator) |
| 216 | RAW_METHOD_DUMP(OS, get_hasSEH) |
| 217 | RAW_METHOD_DUMP(OS, get_hasSecurityChecks) |
| 218 | RAW_METHOD_DUMP(OS, get_hasSetJump) |
| 219 | RAW_METHOD_DUMP(OS, get_strictGSCheck) |
| 220 | RAW_METHOD_DUMP(OS, get_isAcceleratorGroupSharedLocal) |
| 221 | RAW_METHOD_DUMP(OS, get_isAcceleratorPointerTagLiveRange) |
| 222 | RAW_METHOD_DUMP(OS, get_isAcceleratorStubFunction) |
| 223 | RAW_METHOD_DUMP(OS, get_isAggregated) |
| 224 | RAW_METHOD_DUMP(OS, get_intro) |
| 225 | RAW_METHOD_DUMP(OS, get_isCVTCIL) |
| 226 | RAW_METHOD_DUMP(OS, get_isConstructorVirtualBase) |
| 227 | RAW_METHOD_DUMP(OS, get_isCxxReturnUdt) |
| 228 | RAW_METHOD_DUMP(OS, get_isDataAligned) |
| 229 | RAW_METHOD_DUMP(OS, get_isHLSLData) |
| 230 | RAW_METHOD_DUMP(OS, get_isHotpatchable) |
| 231 | RAW_METHOD_DUMP(OS, get_indirectVirtualBaseClass) |
| 232 | RAW_METHOD_DUMP(OS, get_isInterfaceUdt) |
| 233 | RAW_METHOD_DUMP(OS, get_intrinsic) |
| 234 | RAW_METHOD_DUMP(OS, get_isLTCG) |
| 235 | RAW_METHOD_DUMP(OS, get_isLocationControlFlowDependent) |
| 236 | RAW_METHOD_DUMP(OS, get_isMSILNetmodule) |
| 237 | RAW_METHOD_DUMP(OS, get_isMatrixRowMajor) |
| 238 | RAW_METHOD_DUMP(OS, get_managed) |
| 239 | RAW_METHOD_DUMP(OS, get_msil) |
| 240 | RAW_METHOD_DUMP(OS, get_isMultipleInheritance) |
| 241 | RAW_METHOD_DUMP(OS, get_isNaked) |
| 242 | RAW_METHOD_DUMP(OS, get_nested) |
| 243 | RAW_METHOD_DUMP(OS, get_isOptimizedAway) |
| 244 | RAW_METHOD_DUMP(OS, get_packed) |
| 245 | RAW_METHOD_DUMP(OS, get_isPointerBasedOnSymbolValue) |
| 246 | RAW_METHOD_DUMP(OS, get_isPointerToDataMember) |
| 247 | RAW_METHOD_DUMP(OS, get_isPointerToMemberFunction) |
| 248 | RAW_METHOD_DUMP(OS, get_pure) |
| 249 | RAW_METHOD_DUMP(OS, get_RValueReference) |
| 250 | RAW_METHOD_DUMP(OS, get_isRefUdt) |
| 251 | RAW_METHOD_DUMP(OS, get_reference) |
| 252 | RAW_METHOD_DUMP(OS, get_restrictedType) |
| 253 | RAW_METHOD_DUMP(OS, get_isReturnValue) |
| 254 | RAW_METHOD_DUMP(OS, get_isSafeBuffers) |
| 255 | RAW_METHOD_DUMP(OS, get_scoped) |
| 256 | RAW_METHOD_DUMP(OS, get_isSdl) |
| 257 | RAW_METHOD_DUMP(OS, get_isSingleInheritance) |
| 258 | RAW_METHOD_DUMP(OS, get_isSplitted) |
| 259 | RAW_METHOD_DUMP(OS, get_isStatic) |
| 260 | RAW_METHOD_DUMP(OS, get_isStripped) |
| 261 | RAW_METHOD_DUMP(OS, get_unalignedType) |
| 262 | RAW_METHOD_DUMP(OS, get_notReached) |
| 263 | RAW_METHOD_DUMP(OS, get_isValueUdt) |
| 264 | RAW_METHOD_DUMP(OS, get_virtual) |
| 265 | RAW_METHOD_DUMP(OS, get_virtualBaseClass) |
| 266 | RAW_METHOD_DUMP(OS, get_isVirtualInheritance) |
| 267 | RAW_METHOD_DUMP(OS, get_volatileType) |
| 268 | } |
| 269 | |
| 270 | std::unique_ptr<IPDBEnumSymbols> |
| 271 | DIARawSymbol::findChildren(PDB_SymType Type) const { |
| 272 | enum SymTagEnum EnumVal = static_cast<enum SymTagEnum>(Type); |
| 273 | |
| 274 | CComPtr<IDiaEnumSymbols> DiaEnumerator; |
| 275 | if (S_OK != Symbol->findChildren(EnumVal, nullptr, nsNone, &DiaEnumerator)) |
| 276 | return nullptr; |
| 277 | |
| 278 | return std::make_unique<DIAEnumSymbols>(Session, DiaEnumerator); |
| 279 | } |
Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 280 | |
| 281 | std::unique_ptr<IPDBEnumSymbols> |
| 282 | DIARawSymbol::findChildren(PDB_SymType Type, StringRef Name, |
| 283 | PDB_NameSearchFlags Flags) const { |
| 284 | llvm::SmallVector<UTF16, 32> Name16; |
| 285 | llvm::convertUTF8ToUTF16String(Name, Name16); |
| 286 | |
| 287 | enum SymTagEnum EnumVal = static_cast<enum SymTagEnum>(Type); |
| 288 | DWORD CompareFlags = static_cast<DWORD>(Flags); |
| 289 | wchar_t *Name16Str = reinterpret_cast<wchar_t *>(Name16.data()); |
| 290 | |
| 291 | CComPtr<IDiaEnumSymbols> DiaEnumerator; |
| 292 | if (S_OK != |
| 293 | Symbol->findChildren(EnumVal, Name16Str, CompareFlags, &DiaEnumerator)) |
| 294 | return nullptr; |
| 295 | |
| 296 | return std::make_unique<DIAEnumSymbols>(Session, DiaEnumerator); |
| 297 | } |
| 298 | |
| 299 | std::unique_ptr<IPDBEnumSymbols> |
| 300 | DIARawSymbol::findChildrenByRVA(PDB_SymType Type, StringRef Name, |
| 301 | PDB_NameSearchFlags Flags, uint32_t RVA) const { |
| 302 | llvm::SmallVector<UTF16, 32> Name16; |
| 303 | llvm::convertUTF8ToUTF16String(Name, Name16); |
| 304 | |
| 305 | enum SymTagEnum EnumVal = static_cast<enum SymTagEnum>(Type); |
| 306 | DWORD CompareFlags = static_cast<DWORD>(Flags); |
| 307 | wchar_t *Name16Str = reinterpret_cast<wchar_t *>(Name16.data()); |
| 308 | |
| 309 | CComPtr<IDiaEnumSymbols> DiaEnumerator; |
| 310 | if (S_OK != |
| 311 | Symbol->findChildrenExByRVA(EnumVal, Name16Str, CompareFlags, RVA, |
| 312 | &DiaEnumerator)) |
| 313 | return nullptr; |
| 314 | |
| 315 | return std::make_unique<DIAEnumSymbols>(Session, DiaEnumerator); |
| 316 | } |
| 317 | |
| 318 | std::unique_ptr<IPDBEnumSymbols> |
| 319 | DIARawSymbol::findInlineFramesByRVA(uint32_t RVA) const { |
| 320 | CComPtr<IDiaEnumSymbols> DiaEnumerator; |
| 321 | if (S_OK != Symbol->findInlineFramesByRVA(RVA, &DiaEnumerator)) |
| 322 | return nullptr; |
| 323 | |
| 324 | return std::make_unique<DIAEnumSymbols>(Session, DiaEnumerator); |
| 325 | } |
| 326 | |
| 327 | void DIARawSymbol::getDataBytes(llvm::SmallVector<uint8_t, 32> &bytes) const { |
| 328 | bytes.clear(); |
| 329 | |
| 330 | DWORD DataSize = 0; |
| 331 | Symbol->get_dataBytes(0, &DataSize, nullptr); |
| 332 | if (DataSize == 0) |
| 333 | return; |
| 334 | |
| 335 | bytes.resize(DataSize); |
| 336 | Symbol->get_dataBytes(DataSize, &DataSize, bytes.data()); |
| 337 | } |
| 338 | |
| 339 | PDB_MemberAccess DIARawSymbol::getAccess() const { |
| 340 | return PrivateGetDIAValue<DWORD, PDB_MemberAccess>(Symbol, |
| 341 | &IDiaSymbol::get_access); |
| 342 | } |
| 343 | |
| 344 | uint32_t DIARawSymbol::getAddressOffset() const { |
| 345 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_addressOffset); |
| 346 | } |
| 347 | |
| 348 | uint32_t DIARawSymbol::getAddressSection() const { |
| 349 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_addressSection); |
| 350 | } |
| 351 | |
| 352 | uint32_t DIARawSymbol::getAge() const { |
| 353 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_age); |
| 354 | } |
| 355 | |
| 356 | uint32_t DIARawSymbol::getArrayIndexTypeId() const { |
| 357 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_arrayIndexTypeId); |
| 358 | } |
| 359 | |
| 360 | void DIARawSymbol::getBackEndVersion(VersionInfo &Version) const { |
| 361 | Version.Major = PrivateGetDIAValue(Symbol, &IDiaSymbol::get_backEndMajor); |
| 362 | Version.Minor = PrivateGetDIAValue(Symbol, &IDiaSymbol::get_backEndMinor); |
| 363 | Version.Build = PrivateGetDIAValue(Symbol, &IDiaSymbol::get_backEndBuild); |
| 364 | Version.QFE = PrivateGetDIAValue(Symbol, &IDiaSymbol::get_backEndQFE); |
| 365 | } |
| 366 | |
| 367 | uint32_t DIARawSymbol::getBaseDataOffset() const { |
| 368 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_baseDataOffset); |
| 369 | } |
| 370 | |
| 371 | uint32_t DIARawSymbol::getBaseDataSlot() const { |
| 372 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_baseDataSlot); |
| 373 | } |
| 374 | |
| 375 | uint32_t DIARawSymbol::getBaseSymbolId() const { |
| 376 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_baseSymbolId); |
| 377 | } |
| 378 | |
| 379 | PDB_BuiltinType DIARawSymbol::getBuiltinType() const { |
| 380 | return PrivateGetDIAValue<DWORD, PDB_BuiltinType>( |
| 381 | Symbol, &IDiaSymbol::get_builtInKind); |
| 382 | } |
| 383 | |
| 384 | uint32_t DIARawSymbol::getBitPosition() const { |
| 385 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_bitPosition); |
| 386 | } |
| 387 | |
| 388 | PDB_CallingConv DIARawSymbol::getCallingConvention() const { |
| 389 | return PrivateGetDIAValue<DWORD, PDB_CallingConv>( |
| 390 | Symbol, &IDiaSymbol::get_callingConvention); |
| 391 | } |
| 392 | |
| 393 | uint32_t DIARawSymbol::getClassParentId() const { |
| 394 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_classParentId); |
| 395 | } |
| 396 | |
| 397 | std::string DIARawSymbol::getCompilerName() const { |
| 398 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_compilerName); |
| 399 | } |
| 400 | |
| 401 | uint32_t DIARawSymbol::getCount() const { |
| 402 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_count); |
| 403 | } |
| 404 | |
| 405 | uint32_t DIARawSymbol::getCountLiveRanges() const { |
| 406 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_countLiveRanges); |
| 407 | } |
| 408 | |
| 409 | void DIARawSymbol::getFrontEndVersion(VersionInfo &Version) const { |
| 410 | Version.Major = PrivateGetDIAValue(Symbol, &IDiaSymbol::get_frontEndMajor); |
| 411 | Version.Minor = PrivateGetDIAValue(Symbol, &IDiaSymbol::get_frontEndMinor); |
| 412 | Version.Build = PrivateGetDIAValue(Symbol, &IDiaSymbol::get_frontEndBuild); |
| 413 | Version.QFE = PrivateGetDIAValue(Symbol, &IDiaSymbol::get_frontEndQFE); |
| 414 | } |
| 415 | |
| 416 | PDB_Lang DIARawSymbol::getLanguage() const { |
Zachary Turner | a554917 | 2015-02-10 22:43:25 +0000 | [diff] [blame] | 417 | return PrivateGetDIAValue<DWORD, PDB_Lang>(Symbol, &IDiaSymbol::get_language); |
Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 418 | } |
| 419 | |
| 420 | uint32_t DIARawSymbol::getLexicalParentId() const { |
| 421 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_lexicalParentId); |
| 422 | } |
| 423 | |
| 424 | std::string DIARawSymbol::getLibraryName() const { |
| 425 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_libraryName); |
| 426 | } |
| 427 | |
| 428 | uint32_t DIARawSymbol::getLiveRangeStartAddressOffset() const { |
| 429 | return PrivateGetDIAValue(Symbol, |
| 430 | &IDiaSymbol::get_liveRangeStartAddressOffset); |
| 431 | } |
| 432 | |
| 433 | uint32_t DIARawSymbol::getLiveRangeStartAddressSection() const { |
| 434 | return PrivateGetDIAValue(Symbol, |
| 435 | &IDiaSymbol::get_liveRangeStartAddressSection); |
| 436 | } |
| 437 | |
| 438 | uint32_t DIARawSymbol::getLiveRangeStartRelativeVirtualAddress() const { |
| 439 | return PrivateGetDIAValue( |
| 440 | Symbol, &IDiaSymbol::get_liveRangeStartRelativeVirtualAddress); |
| 441 | } |
| 442 | |
Zachary Turner | a554917 | 2015-02-10 22:43:25 +0000 | [diff] [blame] | 443 | PDB_RegisterId DIARawSymbol::getLocalBasePointerRegisterId() const { |
| 444 | return PrivateGetDIAValue<DWORD, PDB_RegisterId>( |
| 445 | Symbol, &IDiaSymbol::get_localBasePointerRegisterId); |
Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 446 | } |
| 447 | |
| 448 | uint32_t DIARawSymbol::getLowerBoundId() const { |
| 449 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_lowerBoundId); |
| 450 | } |
| 451 | |
| 452 | uint32_t DIARawSymbol::getMemorySpaceKind() const { |
| 453 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_memorySpaceKind); |
| 454 | } |
| 455 | |
| 456 | std::string DIARawSymbol::getName() const { |
| 457 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_name); |
| 458 | } |
| 459 | |
| 460 | uint32_t DIARawSymbol::getNumberOfAcceleratorPointerTags() const { |
| 461 | return PrivateGetDIAValue(Symbol, |
| 462 | &IDiaSymbol::get_numberOfAcceleratorPointerTags); |
| 463 | } |
| 464 | |
| 465 | uint32_t DIARawSymbol::getNumberOfColumns() const { |
| 466 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_numberOfColumns); |
| 467 | } |
| 468 | |
| 469 | uint32_t DIARawSymbol::getNumberOfModifiers() const { |
| 470 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_numberOfModifiers); |
| 471 | } |
| 472 | |
| 473 | uint32_t DIARawSymbol::getNumberOfRegisterIndices() const { |
| 474 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_numberOfRegisterIndices); |
| 475 | } |
| 476 | |
| 477 | uint32_t DIARawSymbol::getNumberOfRows() const { |
| 478 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_numberOfRows); |
| 479 | } |
| 480 | |
| 481 | std::string DIARawSymbol::getObjectFileName() const { |
| 482 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_objectFileName); |
| 483 | } |
| 484 | |
| 485 | uint32_t DIARawSymbol::getOemId() const { |
| 486 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_oemId); |
| 487 | } |
| 488 | |
| 489 | uint32_t DIARawSymbol::getOemSymbolId() const { |
| 490 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_oemSymbolId); |
| 491 | } |
| 492 | |
| 493 | uint32_t DIARawSymbol::getOffsetInUdt() const { |
| 494 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_offsetInUdt); |
| 495 | } |
| 496 | |
| 497 | PDB_Cpu DIARawSymbol::getPlatform() const { |
| 498 | return PrivateGetDIAValue<DWORD, PDB_Cpu>(Symbol, &IDiaSymbol::get_platform); |
| 499 | } |
| 500 | |
| 501 | uint32_t DIARawSymbol::getRank() const { |
| 502 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_rank); |
| 503 | } |
| 504 | |
Zachary Turner | a554917 | 2015-02-10 22:43:25 +0000 | [diff] [blame] | 505 | PDB_RegisterId DIARawSymbol::getRegisterId() const { |
| 506 | return PrivateGetDIAValue<DWORD, PDB_RegisterId>(Symbol, |
| 507 | &IDiaSymbol::get_registerId); |
Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 508 | } |
| 509 | |
| 510 | uint32_t DIARawSymbol::getRegisterType() const { |
| 511 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_registerType); |
| 512 | } |
| 513 | |
| 514 | uint32_t DIARawSymbol::getRelativeVirtualAddress() const { |
| 515 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_relativeVirtualAddress); |
| 516 | } |
| 517 | |
| 518 | uint32_t DIARawSymbol::getSamplerSlot() const { |
| 519 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_samplerSlot); |
| 520 | } |
| 521 | |
| 522 | uint32_t DIARawSymbol::getSignature() const { |
| 523 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_signature); |
| 524 | } |
| 525 | |
| 526 | uint32_t DIARawSymbol::getSizeInUdt() const { |
| 527 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_sizeInUdt); |
| 528 | } |
| 529 | |
| 530 | uint32_t DIARawSymbol::getSlot() const { |
| 531 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_slot); |
| 532 | } |
| 533 | |
| 534 | std::string DIARawSymbol::getSourceFileName() const { |
| 535 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_sourceFileName); |
| 536 | } |
| 537 | |
| 538 | uint32_t DIARawSymbol::getStride() const { |
| 539 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_stride); |
| 540 | } |
| 541 | |
| 542 | uint32_t DIARawSymbol::getSubTypeId() const { |
| 543 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_subTypeId); |
| 544 | } |
| 545 | |
| 546 | std::string DIARawSymbol::getSymbolsFileName() const { |
| 547 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_symbolsFileName); |
| 548 | } |
| 549 | |
| 550 | uint32_t DIARawSymbol::getSymIndexId() const { |
| 551 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_symIndexId); |
| 552 | } |
| 553 | |
| 554 | uint32_t DIARawSymbol::getTargetOffset() const { |
| 555 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_targetOffset); |
| 556 | } |
| 557 | |
| 558 | uint32_t DIARawSymbol::getTargetRelativeVirtualAddress() const { |
| 559 | return PrivateGetDIAValue(Symbol, |
| 560 | &IDiaSymbol::get_targetRelativeVirtualAddress); |
| 561 | } |
| 562 | |
| 563 | uint64_t DIARawSymbol::getTargetVirtualAddress() const { |
| 564 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_targetVirtualAddress); |
| 565 | } |
| 566 | |
| 567 | uint32_t DIARawSymbol::getTargetSection() const { |
| 568 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_targetSection); |
| 569 | } |
| 570 | |
| 571 | uint32_t DIARawSymbol::getTextureSlot() const { |
| 572 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_textureSlot); |
| 573 | } |
| 574 | |
| 575 | uint32_t DIARawSymbol::getTimeStamp() const { |
| 576 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_timeStamp); |
| 577 | } |
| 578 | |
| 579 | uint32_t DIARawSymbol::getToken() const { |
| 580 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_token); |
| 581 | } |
| 582 | |
| 583 | uint32_t DIARawSymbol::getTypeId() const { |
| 584 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_typeId); |
| 585 | } |
| 586 | |
| 587 | uint32_t DIARawSymbol::getUavSlot() const { |
| 588 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_uavSlot); |
| 589 | } |
| 590 | |
| 591 | std::string DIARawSymbol::getUndecoratedName() const { |
| 592 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_undecoratedName); |
| 593 | } |
| 594 | |
| 595 | uint32_t DIARawSymbol::getUnmodifiedTypeId() const { |
| 596 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_unmodifiedTypeId); |
| 597 | } |
| 598 | |
| 599 | uint32_t DIARawSymbol::getUpperBoundId() const { |
| 600 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_upperBoundId); |
| 601 | } |
| 602 | |
| 603 | uint32_t DIARawSymbol::getVirtualBaseDispIndex() const { |
| 604 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_virtualBaseDispIndex); |
| 605 | } |
| 606 | |
| 607 | uint32_t DIARawSymbol::getVirtualBaseOffset() const { |
| 608 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_virtualBaseOffset); |
| 609 | } |
| 610 | |
| 611 | uint32_t DIARawSymbol::getVirtualTableShapeId() const { |
| 612 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_virtualTableShapeId); |
| 613 | } |
| 614 | |
| 615 | PDB_DataKind DIARawSymbol::getDataKind() const { |
| 616 | return PrivateGetDIAValue<DWORD, PDB_DataKind>(Symbol, |
| 617 | &IDiaSymbol::get_dataKind); |
| 618 | } |
| 619 | |
| 620 | PDB_SymType DIARawSymbol::getSymTag() const { |
| 621 | return PrivateGetDIAValue<DWORD, PDB_SymType>(Symbol, |
| 622 | &IDiaSymbol::get_symTag); |
| 623 | } |
| 624 | |
| 625 | PDB_UniqueId DIARawSymbol::getGuid() const { |
| 626 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_guid); |
| 627 | } |
| 628 | |
| 629 | int32_t DIARawSymbol::getOffset() const { |
| 630 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_offset); |
| 631 | } |
| 632 | |
| 633 | int32_t DIARawSymbol::getThisAdjust() const { |
| 634 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_thisAdjust); |
| 635 | } |
| 636 | |
| 637 | int32_t DIARawSymbol::getVirtualBasePointerOffset() const { |
| 638 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_virtualBasePointerOffset); |
| 639 | } |
| 640 | |
| 641 | PDB_LocType DIARawSymbol::getLocationType() const { |
| 642 | return PrivateGetDIAValue<DWORD, PDB_LocType>(Symbol, |
| 643 | &IDiaSymbol::get_locationType); |
| 644 | } |
| 645 | |
| 646 | PDB_Machine DIARawSymbol::getMachineType() const { |
| 647 | return PrivateGetDIAValue<DWORD, PDB_Machine>(Symbol, |
| 648 | &IDiaSymbol::get_machineType); |
| 649 | } |
| 650 | |
| 651 | PDB_ThunkOrdinal DIARawSymbol::getThunkOrdinal() const { |
| 652 | return PrivateGetDIAValue<DWORD, PDB_ThunkOrdinal>( |
| 653 | Symbol, &IDiaSymbol::get_thunkOrdinal); |
| 654 | } |
| 655 | |
| 656 | uint64_t DIARawSymbol::getLength() const { |
| 657 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_length); |
| 658 | } |
| 659 | |
| 660 | uint64_t DIARawSymbol::getLiveRangeLength() const { |
| 661 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_liveRangeLength); |
| 662 | } |
| 663 | |
| 664 | uint64_t DIARawSymbol::getVirtualAddress() const { |
| 665 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_virtualAddress); |
| 666 | } |
| 667 | |
| 668 | PDB_UdtType DIARawSymbol::getUdtKind() const { |
| 669 | return PrivateGetDIAValue<DWORD, PDB_UdtType>(Symbol, |
| 670 | &IDiaSymbol::get_udtKind); |
| 671 | } |
| 672 | |
| 673 | bool DIARawSymbol::hasConstructor() const { |
| 674 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_constructor); |
| 675 | } |
| 676 | |
| 677 | bool DIARawSymbol::hasCustomCallingConvention() const { |
| 678 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_customCallingConvention); |
| 679 | } |
| 680 | |
| 681 | bool DIARawSymbol::hasFarReturn() const { |
| 682 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_farReturn); |
| 683 | } |
| 684 | |
| 685 | bool DIARawSymbol::isCode() const { |
| 686 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_code); |
| 687 | } |
| 688 | |
| 689 | bool DIARawSymbol::isCompilerGenerated() const { |
| 690 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_compilerGenerated); |
| 691 | } |
| 692 | |
| 693 | bool DIARawSymbol::isConstType() const { |
| 694 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_constType); |
| 695 | } |
| 696 | |
| 697 | bool DIARawSymbol::isEditAndContinueEnabled() const { |
| 698 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_editAndContinueEnabled); |
| 699 | } |
| 700 | |
| 701 | bool DIARawSymbol::isFunction() const { |
| 702 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_function); |
| 703 | } |
| 704 | |
| 705 | bool DIARawSymbol::getAddressTaken() const { |
Zachary Turner | a554917 | 2015-02-10 22:43:25 +0000 | [diff] [blame] | 706 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_addressTaken); |
Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 707 | } |
| 708 | |
| 709 | bool DIARawSymbol::getNoStackOrdering() const { |
| 710 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_noStackOrdering); |
| 711 | } |
| 712 | |
| 713 | bool DIARawSymbol::hasAlloca() const { |
| 714 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_hasAlloca); |
| 715 | } |
| 716 | |
| 717 | bool DIARawSymbol::hasAssignmentOperator() const { |
| 718 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_hasAssignmentOperator); |
| 719 | } |
| 720 | |
| 721 | bool DIARawSymbol::hasCTypes() const { |
| 722 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isCTypes); |
| 723 | } |
| 724 | |
| 725 | bool DIARawSymbol::hasCastOperator() const { |
| 726 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_hasCastOperator); |
| 727 | } |
| 728 | |
| 729 | bool DIARawSymbol::hasDebugInfo() const { |
| 730 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_hasDebugInfo); |
| 731 | } |
| 732 | |
| 733 | bool DIARawSymbol::hasEH() const { |
| 734 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_hasEH); |
| 735 | } |
| 736 | |
| 737 | bool DIARawSymbol::hasEHa() const { |
| 738 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_hasEHa); |
| 739 | } |
| 740 | |
| 741 | bool DIARawSymbol::hasInlAsm() const { |
| 742 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_hasInlAsm); |
| 743 | } |
| 744 | |
| 745 | bool DIARawSymbol::hasInlineAttribute() const { |
| 746 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_inlSpec); |
| 747 | } |
| 748 | |
| 749 | bool DIARawSymbol::hasInterruptReturn() const { |
| 750 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_interruptReturn); |
| 751 | } |
| 752 | |
Zachary Turner | a554917 | 2015-02-10 22:43:25 +0000 | [diff] [blame] | 753 | bool DIARawSymbol::hasFramePointer() const { |
| 754 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_framePointerPresent); |
| 755 | } |
| 756 | |
Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 757 | bool DIARawSymbol::hasLongJump() const { |
| 758 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_hasLongJump); |
| 759 | } |
| 760 | |
| 761 | bool DIARawSymbol::hasManagedCode() const { |
| 762 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_hasManagedCode); |
| 763 | } |
| 764 | |
| 765 | bool DIARawSymbol::hasNestedTypes() const { |
| 766 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_hasNestedTypes); |
| 767 | } |
| 768 | |
| 769 | bool DIARawSymbol::hasNoInlineAttribute() const { |
| 770 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_noInline); |
| 771 | } |
| 772 | |
| 773 | bool DIARawSymbol::hasNoReturnAttribute() const { |
| 774 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_noReturn); |
| 775 | } |
| 776 | |
| 777 | bool DIARawSymbol::hasOptimizedCodeDebugInfo() const { |
| 778 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_optimizedCodeDebugInfo); |
| 779 | } |
| 780 | |
| 781 | bool DIARawSymbol::hasOverloadedOperator() const { |
| 782 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_overloadedOperator); |
| 783 | } |
| 784 | |
| 785 | bool DIARawSymbol::hasSEH() const { |
| 786 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_hasSEH); |
| 787 | } |
| 788 | |
| 789 | bool DIARawSymbol::hasSecurityChecks() const { |
| 790 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_hasSecurityChecks); |
| 791 | } |
| 792 | |
| 793 | bool DIARawSymbol::hasSetJump() const { |
| 794 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_hasSetJump); |
| 795 | } |
| 796 | |
| 797 | bool DIARawSymbol::hasStrictGSCheck() const { |
| 798 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_strictGSCheck); |
| 799 | } |
| 800 | |
| 801 | bool DIARawSymbol::isAcceleratorGroupSharedLocal() const { |
| 802 | return PrivateGetDIAValue(Symbol, |
| 803 | &IDiaSymbol::get_isAcceleratorGroupSharedLocal); |
| 804 | } |
| 805 | |
| 806 | bool DIARawSymbol::isAcceleratorPointerTagLiveRange() const { |
| 807 | return PrivateGetDIAValue(Symbol, |
| 808 | &IDiaSymbol::get_isAcceleratorPointerTagLiveRange); |
| 809 | } |
| 810 | |
| 811 | bool DIARawSymbol::isAcceleratorStubFunction() const { |
| 812 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isAcceleratorStubFunction); |
| 813 | } |
| 814 | |
| 815 | bool DIARawSymbol::isAggregated() const { |
| 816 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isAggregated); |
| 817 | } |
| 818 | |
| 819 | bool DIARawSymbol::isIntroVirtualFunction() const { |
| 820 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_intro); |
| 821 | } |
| 822 | |
| 823 | bool DIARawSymbol::isCVTCIL() const { |
| 824 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isCVTCIL); |
| 825 | } |
| 826 | |
| 827 | bool DIARawSymbol::isConstructorVirtualBase() const { |
| 828 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isConstructorVirtualBase); |
| 829 | } |
| 830 | |
| 831 | bool DIARawSymbol::isCxxReturnUdt() const { |
| 832 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isCxxReturnUdt); |
| 833 | } |
| 834 | |
| 835 | bool DIARawSymbol::isDataAligned() const { |
| 836 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isDataAligned); |
| 837 | } |
| 838 | |
| 839 | bool DIARawSymbol::isHLSLData() const { |
| 840 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isHLSLData); |
| 841 | } |
| 842 | |
| 843 | bool DIARawSymbol::isHotpatchable() const { |
| 844 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isHotpatchable); |
| 845 | } |
| 846 | |
| 847 | bool DIARawSymbol::isIndirectVirtualBaseClass() const { |
| 848 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_indirectVirtualBaseClass); |
| 849 | } |
| 850 | |
| 851 | bool DIARawSymbol::isInterfaceUdt() const { |
| 852 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isInterfaceUdt); |
| 853 | } |
| 854 | |
| 855 | bool DIARawSymbol::isIntrinsic() const { |
| 856 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_intrinsic); |
| 857 | } |
| 858 | |
| 859 | bool DIARawSymbol::isLTCG() const { |
| 860 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isLTCG); |
| 861 | } |
| 862 | |
| 863 | bool DIARawSymbol::isLocationControlFlowDependent() const { |
| 864 | return PrivateGetDIAValue(Symbol, |
| 865 | &IDiaSymbol::get_isLocationControlFlowDependent); |
| 866 | } |
| 867 | |
| 868 | bool DIARawSymbol::isMSILNetmodule() const { |
| 869 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isMSILNetmodule); |
| 870 | } |
| 871 | |
| 872 | bool DIARawSymbol::isMatrixRowMajor() const { |
| 873 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isMatrixRowMajor); |
| 874 | } |
| 875 | |
| 876 | bool DIARawSymbol::isManagedCode() const { |
| 877 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_managed); |
| 878 | } |
| 879 | |
| 880 | bool DIARawSymbol::isMSILCode() const { |
| 881 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_msil); |
| 882 | } |
| 883 | |
| 884 | bool DIARawSymbol::isMultipleInheritance() const { |
| 885 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isMultipleInheritance); |
| 886 | } |
| 887 | |
| 888 | bool DIARawSymbol::isNaked() const { |
| 889 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isNaked); |
| 890 | } |
| 891 | |
| 892 | bool DIARawSymbol::isNested() const { |
| 893 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_nested); |
| 894 | } |
| 895 | |
| 896 | bool DIARawSymbol::isOptimizedAway() const { |
| 897 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isOptimizedAway); |
| 898 | } |
| 899 | |
| 900 | bool DIARawSymbol::isPacked() const { |
| 901 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_packed); |
| 902 | } |
| 903 | |
| 904 | bool DIARawSymbol::isPointerBasedOnSymbolValue() const { |
| 905 | return PrivateGetDIAValue(Symbol, |
| 906 | &IDiaSymbol::get_isPointerBasedOnSymbolValue); |
| 907 | } |
| 908 | |
| 909 | bool DIARawSymbol::isPointerToDataMember() const { |
| 910 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isPointerToDataMember); |
| 911 | } |
| 912 | |
| 913 | bool DIARawSymbol::isPointerToMemberFunction() const { |
| 914 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isPointerToMemberFunction); |
| 915 | } |
| 916 | |
| 917 | bool DIARawSymbol::isPureVirtual() const { |
| 918 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_pure); |
| 919 | } |
| 920 | |
| 921 | bool DIARawSymbol::isRValueReference() const { |
| 922 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_RValueReference); |
| 923 | } |
| 924 | |
| 925 | bool DIARawSymbol::isRefUdt() const { |
| 926 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isRefUdt); |
| 927 | } |
| 928 | |
| 929 | bool DIARawSymbol::isReference() const { |
| 930 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_reference); |
| 931 | } |
| 932 | |
| 933 | bool DIARawSymbol::isRestrictedType() const { |
| 934 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_restrictedType); |
| 935 | } |
| 936 | |
| 937 | bool DIARawSymbol::isReturnValue() const { |
| 938 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isReturnValue); |
| 939 | } |
| 940 | |
| 941 | bool DIARawSymbol::isSafeBuffers() const { |
| 942 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isSafeBuffers); |
| 943 | } |
| 944 | |
| 945 | bool DIARawSymbol::isScoped() const { |
| 946 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_scoped); |
| 947 | } |
| 948 | |
| 949 | bool DIARawSymbol::isSdl() const { |
| 950 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isSdl); |
| 951 | } |
| 952 | |
| 953 | bool DIARawSymbol::isSingleInheritance() const { |
| 954 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isSingleInheritance); |
| 955 | } |
| 956 | |
| 957 | bool DIARawSymbol::isSplitted() const { |
| 958 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isSplitted); |
| 959 | } |
| 960 | |
| 961 | bool DIARawSymbol::isStatic() const { |
| 962 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isStatic); |
| 963 | } |
| 964 | |
| 965 | bool DIARawSymbol::hasPrivateSymbols() const { |
| 966 | // hasPrivateSymbols is the opposite of isStripped, but we expose |
| 967 | // hasPrivateSymbols as a more intuitive interface. |
| 968 | return !PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isStripped); |
| 969 | } |
| 970 | |
| 971 | bool DIARawSymbol::isUnalignedType() const { |
| 972 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_unalignedType); |
| 973 | } |
| 974 | |
| 975 | bool DIARawSymbol::isUnreached() const { |
| 976 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_notReached); |
| 977 | } |
| 978 | |
| 979 | bool DIARawSymbol::isValueUdt() const { |
| 980 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isValueUdt); |
| 981 | } |
| 982 | |
| 983 | bool DIARawSymbol::isVirtual() const { |
| 984 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_virtual); |
| 985 | } |
| 986 | |
| 987 | bool DIARawSymbol::isVirtualBaseClass() const { |
| 988 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_virtualBaseClass); |
| 989 | } |
| 990 | |
| 991 | bool DIARawSymbol::isVirtualInheritance() const { |
| 992 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_isVirtualInheritance); |
| 993 | } |
| 994 | |
| 995 | bool DIARawSymbol::isVolatileType() const { |
| 996 | return PrivateGetDIAValue(Symbol, &IDiaSymbol::get_volatileType); |
| 997 | } |