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