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