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