1 //===- NativeRawSymbol.cpp - Native implementation of IPDBRawSymbol -------===// 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 10 #include "llvm/DebugInfo/PDB/IPDBLineNumber.h" 11 #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h" 12 #include "llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h" 13 14 using namespace llvm; 15 using namespace llvm::pdb; 16 17 NativeRawSymbol::NativeRawSymbol(NativeSession &PDBSession, SymIndexId SymbolId) 18 : Session(PDBSession), SymbolId(SymbolId) {} 19 20 void NativeRawSymbol::dump(raw_ostream &OS, int Indent) const {} 21 22 std::unique_ptr<IPDBEnumSymbols> 23 NativeRawSymbol::findChildren(PDB_SymType Type) const { 24 return nullptr; 25 } 26 27 std::unique_ptr<IPDBEnumSymbols> 28 NativeRawSymbol::findChildren(PDB_SymType Type, StringRef Name, 29 PDB_NameSearchFlags Flags) const { 30 return nullptr; 31 } 32 33 std::unique_ptr<IPDBEnumSymbols> 34 NativeRawSymbol::findChildrenByAddr(PDB_SymType Type, StringRef Name, 35 PDB_NameSearchFlags Flags, uint32_t Section, uint32_t Offset) const { 36 return nullptr; 37 } 38 39 std::unique_ptr<IPDBEnumSymbols> 40 NativeRawSymbol::findChildrenByVA(PDB_SymType Type, StringRef Name, 41 PDB_NameSearchFlags Flags, uint64_t VA) const { 42 return nullptr; 43 } 44 45 std::unique_ptr<IPDBEnumSymbols> 46 NativeRawSymbol::findChildrenByRVA(PDB_SymType Type, StringRef Name, 47 PDB_NameSearchFlags Flags, uint32_t RVA) const { 48 return nullptr; 49 } 50 51 std::unique_ptr<IPDBEnumSymbols> 52 NativeRawSymbol::findInlineFramesByAddr(uint32_t Section, 53 uint32_t Offset) const { 54 return nullptr; 55 } 56 57 std::unique_ptr<IPDBEnumSymbols> 58 NativeRawSymbol::findInlineFramesByRVA(uint32_t RVA) const { 59 return nullptr; 60 } 61 62 std::unique_ptr<IPDBEnumSymbols> 63 NativeRawSymbol::findInlineFramesByVA(uint64_t VA) const { 64 return nullptr; 65 } 66 67 std::unique_ptr<IPDBEnumLineNumbers> 68 NativeRawSymbol::findInlineeLines() const { 69 return nullptr; 70 } 71 72 std::unique_ptr<IPDBEnumLineNumbers> 73 NativeRawSymbol::findInlineeLinesByAddr(uint32_t Section, uint32_t Offset, 74 uint32_t Length) const { 75 return nullptr; 76 } 77 78 std::unique_ptr<IPDBEnumLineNumbers> 79 NativeRawSymbol::findInlineeLinesByRVA(uint32_t RVA, uint32_t Length) const { 80 return nullptr; 81 } 82 83 std::unique_ptr<IPDBEnumLineNumbers> 84 NativeRawSymbol::findInlineeLinesByVA(uint64_t VA, uint32_t Length) const { 85 return nullptr; 86 } 87 88 void NativeRawSymbol::getDataBytes(SmallVector<uint8_t, 32> &bytes) const { 89 bytes.clear(); 90 } 91 92 PDB_MemberAccess NativeRawSymbol::getAccess() const { 93 return PDB_MemberAccess::Private; 94 } 95 96 uint32_t NativeRawSymbol::getAddressOffset() const { 97 return 0; 98 } 99 100 uint32_t NativeRawSymbol::getAddressSection() const { 101 return 0; 102 } 103 104 uint32_t NativeRawSymbol::getAge() const { 105 return 0; 106 } 107 108 uint32_t NativeRawSymbol::getArrayIndexTypeId() const { 109 return 0; 110 } 111 112 void NativeRawSymbol::getBackEndVersion(VersionInfo &Version) const { 113 Version.Major = 0; 114 Version.Minor = 0; 115 Version.Build = 0; 116 Version.QFE = 0; 117 } 118 119 uint32_t NativeRawSymbol::getBaseDataOffset() const { 120 return 0; 121 } 122 123 uint32_t NativeRawSymbol::getBaseDataSlot() const { 124 return 0; 125 } 126 127 uint32_t NativeRawSymbol::getBaseSymbolId() const { 128 return 0; 129 } 130 131 PDB_BuiltinType NativeRawSymbol::getBuiltinType() const { 132 return PDB_BuiltinType::None; 133 } 134 135 uint32_t NativeRawSymbol::getBitPosition() const { 136 return 0; 137 } 138 139 PDB_CallingConv NativeRawSymbol::getCallingConvention() const { 140 return PDB_CallingConv::FarStdCall; 141 } 142 143 uint32_t NativeRawSymbol::getClassParentId() const { 144 return 0; 145 } 146 147 std::string NativeRawSymbol::getCompilerName() const { 148 return {}; 149 } 150 151 uint32_t NativeRawSymbol::getCount() const { 152 return 0; 153 } 154 155 uint32_t NativeRawSymbol::getCountLiveRanges() const { 156 return 0; 157 } 158 159 void NativeRawSymbol::getFrontEndVersion(VersionInfo &Version) const { 160 Version.Major = 0; 161 Version.Minor = 0; 162 Version.Build = 0; 163 Version.QFE = 0; 164 } 165 166 PDB_Lang NativeRawSymbol::getLanguage() const { 167 return PDB_Lang::Cobol; 168 } 169 170 uint32_t NativeRawSymbol::getLexicalParentId() const { 171 return 0; 172 } 173 174 std::string NativeRawSymbol::getLibraryName() const { 175 return {}; 176 } 177 178 uint32_t NativeRawSymbol::getLiveRangeStartAddressOffset() const { 179 return 0; 180 } 181 182 uint32_t NativeRawSymbol::getLiveRangeStartAddressSection() const { 183 return 0; 184 } 185 186 uint32_t NativeRawSymbol::getLiveRangeStartRelativeVirtualAddress() const { 187 return 0; 188 } 189 190 codeview::RegisterId NativeRawSymbol::getLocalBasePointerRegisterId() const { 191 return codeview::RegisterId::EAX; 192 } 193 194 uint32_t NativeRawSymbol::getLowerBoundId() const { 195 return 0; 196 } 197 198 uint32_t NativeRawSymbol::getMemorySpaceKind() const { 199 return 0; 200 } 201 202 std::string NativeRawSymbol::getName() const { 203 return {}; 204 } 205 206 uint32_t NativeRawSymbol::getNumberOfAcceleratorPointerTags() const { 207 return 0; 208 } 209 210 uint32_t NativeRawSymbol::getNumberOfColumns() const { 211 return 0; 212 } 213 214 uint32_t NativeRawSymbol::getNumberOfModifiers() const { 215 return 0; 216 } 217 218 uint32_t NativeRawSymbol::getNumberOfRegisterIndices() const { 219 return 0; 220 } 221 222 uint32_t NativeRawSymbol::getNumberOfRows() const { 223 return 0; 224 } 225 226 std::string NativeRawSymbol::getObjectFileName() const { 227 return {}; 228 } 229 230 uint32_t NativeRawSymbol::getOemId() const { 231 return 0; 232 } 233 234 uint32_t NativeRawSymbol::getOemSymbolId() const { 235 return 0; 236 } 237 238 uint32_t NativeRawSymbol::getOffsetInUdt() const { 239 return 0; 240 } 241 242 PDB_Cpu NativeRawSymbol::getPlatform() const { 243 return PDB_Cpu::Intel8080; 244 } 245 246 uint32_t NativeRawSymbol::getRank() const { 247 return 0; 248 } 249 250 codeview::RegisterId NativeRawSymbol::getRegisterId() const { 251 return codeview::RegisterId::EAX; 252 } 253 254 uint32_t NativeRawSymbol::getRegisterType() const { 255 return 0; 256 } 257 258 uint32_t NativeRawSymbol::getRelativeVirtualAddress() const { 259 return 0; 260 } 261 262 uint32_t NativeRawSymbol::getSamplerSlot() const { 263 return 0; 264 } 265 266 uint32_t NativeRawSymbol::getSignature() const { 267 return 0; 268 } 269 270 uint32_t NativeRawSymbol::getSizeInUdt() const { 271 return 0; 272 } 273 274 uint32_t NativeRawSymbol::getSlot() const { 275 return 0; 276 } 277 278 std::string NativeRawSymbol::getSourceFileName() const { 279 return {}; 280 } 281 282 std::unique_ptr<IPDBLineNumber> 283 NativeRawSymbol::getSrcLineOnTypeDefn() const { 284 return nullptr; 285 } 286 287 uint32_t NativeRawSymbol::getStride() const { 288 return 0; 289 } 290 291 uint32_t NativeRawSymbol::getSubTypeId() const { 292 return 0; 293 } 294 295 std::string NativeRawSymbol::getSymbolsFileName() const { return {}; } 296 297 uint32_t NativeRawSymbol::getSymIndexId() const { return SymbolId; } 298 299 uint32_t NativeRawSymbol::getTargetOffset() const { 300 return 0; 301 } 302 303 uint32_t NativeRawSymbol::getTargetRelativeVirtualAddress() const { 304 return 0; 305 } 306 307 uint64_t NativeRawSymbol::getTargetVirtualAddress() const { 308 return 0; 309 } 310 311 uint32_t NativeRawSymbol::getTargetSection() const { 312 return 0; 313 } 314 315 uint32_t NativeRawSymbol::getTextureSlot() const { 316 return 0; 317 } 318 319 uint32_t NativeRawSymbol::getTimeStamp() const { 320 return 0; 321 } 322 323 uint32_t NativeRawSymbol::getToken() const { 324 return 0; 325 } 326 327 uint32_t NativeRawSymbol::getTypeId() const { 328 return 0; 329 } 330 331 uint32_t NativeRawSymbol::getUavSlot() const { 332 return 0; 333 } 334 335 std::string NativeRawSymbol::getUndecoratedName() const { 336 return {}; 337 } 338 339 std::string NativeRawSymbol::getUndecoratedNameEx( 340 PDB_UndnameFlags Flags) const { 341 return {}; 342 } 343 344 uint32_t NativeRawSymbol::getUnmodifiedTypeId() const { 345 return 0; 346 } 347 348 uint32_t NativeRawSymbol::getUpperBoundId() const { 349 return 0; 350 } 351 352 Variant NativeRawSymbol::getValue() const { 353 return Variant(); 354 } 355 356 uint32_t NativeRawSymbol::getVirtualBaseDispIndex() const { 357 return 0; 358 } 359 360 uint32_t NativeRawSymbol::getVirtualBaseOffset() const { 361 return 0; 362 } 363 364 uint32_t NativeRawSymbol::getVirtualTableShapeId() const { 365 return 0; 366 } 367 368 std::unique_ptr<PDBSymbolTypeBuiltin> 369 NativeRawSymbol::getVirtualBaseTableType() const { 370 return nullptr; 371 } 372 373 PDB_DataKind NativeRawSymbol::getDataKind() const { 374 return PDB_DataKind::Unknown; 375 } 376 377 PDB_SymType NativeRawSymbol::getSymTag() const { 378 return PDB_SymType::None; 379 } 380 381 codeview::GUID NativeRawSymbol::getGuid() const { return codeview::GUID{{0}}; } 382 383 int32_t NativeRawSymbol::getOffset() const { 384 return 0; 385 } 386 387 int32_t NativeRawSymbol::getThisAdjust() const { 388 return 0; 389 } 390 391 int32_t NativeRawSymbol::getVirtualBasePointerOffset() const { 392 return 0; 393 } 394 395 PDB_LocType NativeRawSymbol::getLocationType() const { 396 return PDB_LocType::Null; 397 } 398 399 PDB_Machine NativeRawSymbol::getMachineType() const { 400 return PDB_Machine::Invalid; 401 } 402 403 codeview::ThunkOrdinal NativeRawSymbol::getThunkOrdinal() const { 404 return codeview::ThunkOrdinal::Standard; 405 } 406 407 uint64_t NativeRawSymbol::getLength() const { 408 return 0; 409 } 410 411 uint64_t NativeRawSymbol::getLiveRangeLength() const { 412 return 0; 413 } 414 415 uint64_t NativeRawSymbol::getVirtualAddress() const { 416 return 0; 417 } 418 419 PDB_UdtType NativeRawSymbol::getUdtKind() const { 420 return PDB_UdtType::Struct; 421 } 422 423 bool NativeRawSymbol::hasConstructor() const { 424 return false; 425 } 426 427 bool NativeRawSymbol::hasCustomCallingConvention() const { 428 return false; 429 } 430 431 bool NativeRawSymbol::hasFarReturn() const { 432 return false; 433 } 434 435 bool NativeRawSymbol::isCode() const { 436 return false; 437 } 438 439 bool NativeRawSymbol::isCompilerGenerated() const { 440 return false; 441 } 442 443 bool NativeRawSymbol::isConstType() const { 444 return false; 445 } 446 447 bool NativeRawSymbol::isEditAndContinueEnabled() const { 448 return false; 449 } 450 451 bool NativeRawSymbol::isFunction() const { 452 return false; 453 } 454 455 bool NativeRawSymbol::getAddressTaken() const { 456 return false; 457 } 458 459 bool NativeRawSymbol::getNoStackOrdering() const { 460 return false; 461 } 462 463 bool NativeRawSymbol::hasAlloca() const { 464 return false; 465 } 466 467 bool NativeRawSymbol::hasAssignmentOperator() const { 468 return false; 469 } 470 471 bool NativeRawSymbol::hasCTypes() const { 472 return false; 473 } 474 475 bool NativeRawSymbol::hasCastOperator() const { 476 return false; 477 } 478 479 bool NativeRawSymbol::hasDebugInfo() const { 480 return false; 481 } 482 483 bool NativeRawSymbol::hasEH() const { 484 return false; 485 } 486 487 bool NativeRawSymbol::hasEHa() const { 488 return false; 489 } 490 491 bool NativeRawSymbol::hasInlAsm() const { 492 return false; 493 } 494 495 bool NativeRawSymbol::hasInlineAttribute() const { 496 return false; 497 } 498 499 bool NativeRawSymbol::hasInterruptReturn() const { 500 return false; 501 } 502 503 bool NativeRawSymbol::hasFramePointer() const { 504 return false; 505 } 506 507 bool NativeRawSymbol::hasLongJump() const { 508 return false; 509 } 510 511 bool NativeRawSymbol::hasManagedCode() const { 512 return false; 513 } 514 515 bool NativeRawSymbol::hasNestedTypes() const { 516 return false; 517 } 518 519 bool NativeRawSymbol::hasNoInlineAttribute() const { 520 return false; 521 } 522 523 bool NativeRawSymbol::hasNoReturnAttribute() const { 524 return false; 525 } 526 527 bool NativeRawSymbol::hasOptimizedCodeDebugInfo() const { 528 return false; 529 } 530 531 bool NativeRawSymbol::hasOverloadedOperator() const { 532 return false; 533 } 534 535 bool NativeRawSymbol::hasSEH() const { 536 return false; 537 } 538 539 bool NativeRawSymbol::hasSecurityChecks() const { 540 return false; 541 } 542 543 bool NativeRawSymbol::hasSetJump() const { 544 return false; 545 } 546 547 bool NativeRawSymbol::hasStrictGSCheck() const { 548 return false; 549 } 550 551 bool NativeRawSymbol::isAcceleratorGroupSharedLocal() const { 552 return false; 553 } 554 555 bool NativeRawSymbol::isAcceleratorPointerTagLiveRange() const { 556 return false; 557 } 558 559 bool NativeRawSymbol::isAcceleratorStubFunction() const { 560 return false; 561 } 562 563 bool NativeRawSymbol::isAggregated() const { 564 return false; 565 } 566 567 bool NativeRawSymbol::isIntroVirtualFunction() const { 568 return false; 569 } 570 571 bool NativeRawSymbol::isCVTCIL() const { 572 return false; 573 } 574 575 bool NativeRawSymbol::isConstructorVirtualBase() const { 576 return false; 577 } 578 579 bool NativeRawSymbol::isCxxReturnUdt() const { 580 return false; 581 } 582 583 bool NativeRawSymbol::isDataAligned() const { 584 return false; 585 } 586 587 bool NativeRawSymbol::isHLSLData() const { 588 return false; 589 } 590 591 bool NativeRawSymbol::isHotpatchable() const { 592 return false; 593 } 594 595 bool NativeRawSymbol::isIndirectVirtualBaseClass() const { 596 return false; 597 } 598 599 bool NativeRawSymbol::isInterfaceUdt() const { 600 return false; 601 } 602 603 bool NativeRawSymbol::isIntrinsic() const { 604 return false; 605 } 606 607 bool NativeRawSymbol::isLTCG() const { 608 return false; 609 } 610 611 bool NativeRawSymbol::isLocationControlFlowDependent() const { 612 return false; 613 } 614 615 bool NativeRawSymbol::isMSILNetmodule() const { 616 return false; 617 } 618 619 bool NativeRawSymbol::isMatrixRowMajor() const { 620 return false; 621 } 622 623 bool NativeRawSymbol::isManagedCode() const { 624 return false; 625 } 626 627 bool NativeRawSymbol::isMSILCode() const { 628 return false; 629 } 630 631 bool NativeRawSymbol::isMultipleInheritance() const { 632 return false; 633 } 634 635 bool NativeRawSymbol::isNaked() const { 636 return false; 637 } 638 639 bool NativeRawSymbol::isNested() const { 640 return false; 641 } 642 643 bool NativeRawSymbol::isOptimizedAway() const { 644 return false; 645 } 646 647 bool NativeRawSymbol::isPacked() const { 648 return false; 649 } 650 651 bool NativeRawSymbol::isPointerBasedOnSymbolValue() const { 652 return false; 653 } 654 655 bool NativeRawSymbol::isPointerToDataMember() const { 656 return false; 657 } 658 659 bool NativeRawSymbol::isPointerToMemberFunction() const { 660 return false; 661 } 662 663 bool NativeRawSymbol::isPureVirtual() const { 664 return false; 665 } 666 667 bool NativeRawSymbol::isRValueReference() const { 668 return false; 669 } 670 671 bool NativeRawSymbol::isRefUdt() const { 672 return false; 673 } 674 675 bool NativeRawSymbol::isReference() const { 676 return false; 677 } 678 679 bool NativeRawSymbol::isRestrictedType() const { 680 return false; 681 } 682 683 bool NativeRawSymbol::isReturnValue() const { 684 return false; 685 } 686 687 bool NativeRawSymbol::isSafeBuffers() const { 688 return false; 689 } 690 691 bool NativeRawSymbol::isScoped() const { 692 return false; 693 } 694 695 bool NativeRawSymbol::isSdl() const { 696 return false; 697 } 698 699 bool NativeRawSymbol::isSingleInheritance() const { 700 return false; 701 } 702 703 bool NativeRawSymbol::isSplitted() const { 704 return false; 705 } 706 707 bool NativeRawSymbol::isStatic() const { 708 return false; 709 } 710 711 bool NativeRawSymbol::hasPrivateSymbols() const { 712 return false; 713 } 714 715 bool NativeRawSymbol::isUnalignedType() const { 716 return false; 717 } 718 719 bool NativeRawSymbol::isUnreached() const { 720 return false; 721 } 722 723 bool NativeRawSymbol::isValueUdt() const { 724 return false; 725 } 726 727 bool NativeRawSymbol::isVirtual() const { 728 return false; 729 } 730 731 bool NativeRawSymbol::isVirtualBaseClass() const { 732 return false; 733 } 734 735 bool NativeRawSymbol::isVirtualInheritance() const { 736 return false; 737 } 738 739 bool NativeRawSymbol::isVolatileType() const { 740 return false; 741 } 742 743 bool NativeRawSymbol::wasInlined() const { 744 return false; 745 } 746 747 std::string NativeRawSymbol::getUnused() const { 748 return {}; 749 } 750