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