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