]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp
Merge ^/head r320398 through r320572.
[FreeBSD/FreeBSD.git] / contrib / llvm / lib / DebugInfo / PDB / Native / NativeRawSymbol.cpp
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, uint32_t 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 uint32_t NativeRawSymbol::getUnmodifiedTypeId() const {
290   return 0;
291 }
292
293 uint32_t NativeRawSymbol::getUpperBoundId() const {
294   return 0;
295 }
296
297 Variant NativeRawSymbol::getValue() const {
298   return Variant();
299 }
300
301 uint32_t NativeRawSymbol::getVirtualBaseDispIndex() const {
302   return 0;
303 }
304
305 uint32_t NativeRawSymbol::getVirtualBaseOffset() const {
306   return 0;
307 }
308
309 uint32_t NativeRawSymbol::getVirtualTableShapeId() const {
310   return 0;
311 }
312
313 std::unique_ptr<PDBSymbolTypeBuiltin>
314 NativeRawSymbol::getVirtualBaseTableType() const {
315   return nullptr;
316 }
317
318 PDB_DataKind NativeRawSymbol::getDataKind() const {
319   return PDB_DataKind::Unknown;
320 }
321
322 PDB_SymType NativeRawSymbol::getSymTag() const {
323   return PDB_SymType::None;
324 }
325
326 PDB_UniqueId NativeRawSymbol::getGuid() const {
327   return PDB_UniqueId{{0}};
328 }
329
330 int32_t NativeRawSymbol::getOffset() const {
331   return 0;
332 }
333
334 int32_t NativeRawSymbol::getThisAdjust() const {
335   return 0;
336 }
337
338 int32_t NativeRawSymbol::getVirtualBasePointerOffset() const {
339   return 0;
340 }
341
342 PDB_LocType NativeRawSymbol::getLocationType() const {
343   return PDB_LocType::Null;
344 }
345
346 PDB_Machine NativeRawSymbol::getMachineType() const {
347   return PDB_Machine::Invalid;
348 }
349
350 codeview::ThunkOrdinal NativeRawSymbol::getThunkOrdinal() const {
351   return codeview::ThunkOrdinal::Standard;
352 }
353
354 uint64_t NativeRawSymbol::getLength() const {
355   return 0;
356 }
357
358 uint64_t NativeRawSymbol::getLiveRangeLength() const {
359   return 0;
360 }
361
362 uint64_t NativeRawSymbol::getVirtualAddress() const {
363   return 0;
364 }
365
366 PDB_UdtType NativeRawSymbol::getUdtKind() const {
367   return PDB_UdtType::Struct;
368 }
369
370 bool NativeRawSymbol::hasConstructor() const {
371   return false;
372 }
373
374 bool NativeRawSymbol::hasCustomCallingConvention() const {
375   return false;
376 }
377
378 bool NativeRawSymbol::hasFarReturn() const {
379   return false;
380 }
381
382 bool NativeRawSymbol::isCode() const {
383   return false;
384 }
385
386 bool NativeRawSymbol::isCompilerGenerated() const {
387   return false;
388 }
389
390 bool NativeRawSymbol::isConstType() const {
391   return false;
392 }
393
394 bool NativeRawSymbol::isEditAndContinueEnabled() const {
395   return false;
396 }
397
398 bool NativeRawSymbol::isFunction() const {
399   return false;
400 }
401
402 bool NativeRawSymbol::getAddressTaken() const {
403   return false;
404 }
405
406 bool NativeRawSymbol::getNoStackOrdering() const {
407   return false;
408 }
409
410 bool NativeRawSymbol::hasAlloca() const {
411   return false;
412 }
413
414 bool NativeRawSymbol::hasAssignmentOperator() const {
415   return false;
416 }
417
418 bool NativeRawSymbol::hasCTypes() const {
419   return false;
420 }
421
422 bool NativeRawSymbol::hasCastOperator() const {
423   return false;
424 }
425
426 bool NativeRawSymbol::hasDebugInfo() const {
427   return false;
428 }
429
430 bool NativeRawSymbol::hasEH() const {
431   return false;
432 }
433
434 bool NativeRawSymbol::hasEHa() const {
435   return false;
436 }
437
438 bool NativeRawSymbol::hasInlAsm() const {
439   return false;
440 }
441
442 bool NativeRawSymbol::hasInlineAttribute() const {
443   return false;
444 }
445
446 bool NativeRawSymbol::hasInterruptReturn() const {
447   return false;
448 }
449
450 bool NativeRawSymbol::hasFramePointer() const {
451   return false;
452 }
453
454 bool NativeRawSymbol::hasLongJump() const {
455   return false;
456 }
457
458 bool NativeRawSymbol::hasManagedCode() const {
459   return false;
460 }
461
462 bool NativeRawSymbol::hasNestedTypes() const {
463   return false;
464 }
465
466 bool NativeRawSymbol::hasNoInlineAttribute() const {
467   return false;
468 }
469
470 bool NativeRawSymbol::hasNoReturnAttribute() const {
471   return false;
472 }
473
474 bool NativeRawSymbol::hasOptimizedCodeDebugInfo() const {
475   return false;
476 }
477
478 bool NativeRawSymbol::hasOverloadedOperator() const {
479   return false;
480 }
481
482 bool NativeRawSymbol::hasSEH() const {
483   return false;
484 }
485
486 bool NativeRawSymbol::hasSecurityChecks() const {
487   return false;
488 }
489
490 bool NativeRawSymbol::hasSetJump() const {
491   return false;
492 }
493
494 bool NativeRawSymbol::hasStrictGSCheck() const {
495   return false;
496 }
497
498 bool NativeRawSymbol::isAcceleratorGroupSharedLocal() const {
499   return false;
500 }
501
502 bool NativeRawSymbol::isAcceleratorPointerTagLiveRange() const {
503   return false;
504 }
505
506 bool NativeRawSymbol::isAcceleratorStubFunction() const {
507   return false;
508 }
509
510 bool NativeRawSymbol::isAggregated() const {
511   return false;
512 }
513
514 bool NativeRawSymbol::isIntroVirtualFunction() const {
515   return false;
516 }
517
518 bool NativeRawSymbol::isCVTCIL() const {
519   return false;
520 }
521
522 bool NativeRawSymbol::isConstructorVirtualBase() const {
523   return false;
524 }
525
526 bool NativeRawSymbol::isCxxReturnUdt() const {
527   return false;
528 }
529
530 bool NativeRawSymbol::isDataAligned() const {
531   return false;
532 }
533
534 bool NativeRawSymbol::isHLSLData() const {
535   return false;
536 }
537
538 bool NativeRawSymbol::isHotpatchable() const {
539   return false;
540 }
541
542 bool NativeRawSymbol::isIndirectVirtualBaseClass() const {
543   return false;
544 }
545
546 bool NativeRawSymbol::isInterfaceUdt() const {
547   return false;
548 }
549
550 bool NativeRawSymbol::isIntrinsic() const {
551   return false;
552 }
553
554 bool NativeRawSymbol::isLTCG() const {
555   return false;
556 }
557
558 bool NativeRawSymbol::isLocationControlFlowDependent() const {
559   return false;
560 }
561
562 bool NativeRawSymbol::isMSILNetmodule() const {
563   return false;
564 }
565
566 bool NativeRawSymbol::isMatrixRowMajor() const {
567   return false;
568 }
569
570 bool NativeRawSymbol::isManagedCode() const {
571   return false;
572 }
573
574 bool NativeRawSymbol::isMSILCode() const {
575   return false;
576 }
577
578 bool NativeRawSymbol::isMultipleInheritance() const {
579   return false;
580 }
581
582 bool NativeRawSymbol::isNaked() const {
583   return false;
584 }
585
586 bool NativeRawSymbol::isNested() const {
587   return false;
588 }
589
590 bool NativeRawSymbol::isOptimizedAway() const {
591   return false;
592 }
593
594 bool NativeRawSymbol::isPacked() const {
595   return false;
596 }
597
598 bool NativeRawSymbol::isPointerBasedOnSymbolValue() const {
599   return false;
600 }
601
602 bool NativeRawSymbol::isPointerToDataMember() const {
603   return false;
604 }
605
606 bool NativeRawSymbol::isPointerToMemberFunction() const {
607   return false;
608 }
609
610 bool NativeRawSymbol::isPureVirtual() const {
611   return false;
612 }
613
614 bool NativeRawSymbol::isRValueReference() const {
615   return false;
616 }
617
618 bool NativeRawSymbol::isRefUdt() const {
619   return false;
620 }
621
622 bool NativeRawSymbol::isReference() const {
623   return false;
624 }
625
626 bool NativeRawSymbol::isRestrictedType() const {
627   return false;
628 }
629
630 bool NativeRawSymbol::isReturnValue() const {
631   return false;
632 }
633
634 bool NativeRawSymbol::isSafeBuffers() const {
635   return false;
636 }
637
638 bool NativeRawSymbol::isScoped() const {
639   return false;
640 }
641
642 bool NativeRawSymbol::isSdl() const {
643   return false;
644 }
645
646 bool NativeRawSymbol::isSingleInheritance() const {
647   return false;
648 }
649
650 bool NativeRawSymbol::isSplitted() const {
651   return false;
652 }
653
654 bool NativeRawSymbol::isStatic() const {
655   return false;
656 }
657
658 bool NativeRawSymbol::hasPrivateSymbols() const {
659   return false;
660 }
661
662 bool NativeRawSymbol::isUnalignedType() const {
663   return false;
664 }
665
666 bool NativeRawSymbol::isUnreached() const {
667   return false;
668 }
669
670 bool NativeRawSymbol::isValueUdt() const {
671   return false;
672 }
673
674 bool NativeRawSymbol::isVirtual() const {
675   return false;
676 }
677
678 bool NativeRawSymbol::isVirtualBaseClass() const {
679   return false;
680 }
681
682 bool NativeRawSymbol::isVirtualInheritance() const {
683   return false;
684 }
685
686 bool NativeRawSymbol::isVolatileType() const {
687   return false;
688 }
689
690 bool NativeRawSymbol::wasInlined() const {
691   return false;
692 }
693
694 std::string NativeRawSymbol::getUnused() const {
695   return {};
696 }