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