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