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