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