LLVM  5.0.0
NativeRawSymbol.cpp
Go to the documentation of this file.
1 //===- NativeRawSymbol.cpp - Native implementation of IPDBRawSymbol -------===//
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 
12 
13 using namespace llvm;
14 using namespace llvm::pdb;
15 
17  : Session(PDBSession), SymbolId(SymbolId) {}
18 
19 void NativeRawSymbol::dump(raw_ostream &OS, int Indent) const {}
20 
21 std::unique_ptr<IPDBEnumSymbols>
23  return nullptr;
24 }
25 
26 std::unique_ptr<IPDBEnumSymbols>
28  PDB_NameSearchFlags Flags) const {
29  return nullptr;
30 }
31 
32 std::unique_ptr<IPDBEnumSymbols>
34  PDB_NameSearchFlags Flags, uint32_t RVA) const {
35  return nullptr;
36 }
37 
38 std::unique_ptr<IPDBEnumSymbols>
40  return nullptr;
41 }
42 
44  bytes.clear();
45 }
46 
49 }
50 
52  return 0;
53 }
54 
56  return 0;
57 }
58 
60  return 0;
61 }
62 
64  return 0;
65 }
66 
68  Version.Major = 0;
69  Version.Minor = 0;
70  Version.Build = 0;
71  Version.QFE = 0;
72 }
73 
75  return 0;
76 }
77 
79  return 0;
80 }
81 
83  return 0;
84 }
85 
87  return PDB_BuiltinType::None;
88 }
89 
91  return 0;
92 }
93 
95  return PDB_CallingConv::FarStdCall;
96 }
97 
99  return 0;
100 }
101 
102 std::string NativeRawSymbol::getCompilerName() const {
103  return {};
104 }
105 
107  return 0;
108 }
109 
111  return 0;
112 }
113 
115  Version.Major = 0;
116  Version.Minor = 0;
117  Version.Build = 0;
118  Version.QFE = 0;
119 }
120 
122  return PDB_Lang::Cobol;
123 }
124 
126  return 0;
127 }
128 
129 std::string NativeRawSymbol::getLibraryName() const {
130  return {};
131 }
132 
134  return 0;
135 }
136 
138  return 0;
139 }
140 
142  return 0;
143 }
144 
147 }
148 
150  return 0;
151 }
152 
154  return 0;
155 }
156 
157 std::string NativeRawSymbol::getName() const {
158  return {};
159 }
160 
162  return 0;
163 }
164 
166  return 0;
167 }
168 
170  return 0;
171 }
172 
174  return 0;
175 }
176 
178  return 0;
179 }
180 
182  return {};
183 }
184 
186  return 0;
187 }
188 
190  return 0;
191 }
192 
194  return 0;
195 }
196 
198  return PDB_Cpu::Intel8080;
199 }
200 
202  return 0;
203 }
204 
207 }
208 
210  return 0;
211 }
212 
214  return 0;
215 }
216 
218  return 0;
219 }
220 
222  return 0;
223 }
224 
226  return 0;
227 }
228 
230  return 0;
231 }
232 
234  return {};
235 }
236 
238  return 0;
239 }
240 
242  return 0;
243 }
244 
245 std::string NativeRawSymbol::getSymbolsFileName() const { return {}; }
246 
248 
250  return 0;
251 }
252 
254  return 0;
255 }
256 
258  return 0;
259 }
260 
262  return 0;
263 }
264 
266  return 0;
267 }
268 
270  return 0;
271 }
272 
274  return 0;
275 }
276 
278  return 0;
279 }
280 
282  return 0;
283 }
284 
286  return {};
287 }
288 
290  return 0;
291 }
292 
294  return 0;
295 }
296 
298  return Variant();
299 }
300 
302  return 0;
303 }
304 
306  return 0;
307 }
308 
310  return 0;
311 }
312 
313 std::unique_ptr<PDBSymbolTypeBuiltin>
315  return nullptr;
316 }
317 
319  return PDB_DataKind::Unknown;
320 }
321 
323  return PDB_SymType::None;
324 }
325 
327 
328 int32_t NativeRawSymbol::getOffset() const {
329  return 0;
330 }
331 
333  return 0;
334 }
335 
337  return 0;
338 }
339 
341  return PDB_LocType::Null;
342 }
343 
345  return PDB_Machine::Invalid;
346 }
347 
350 }
351 
352 uint64_t NativeRawSymbol::getLength() const {
353  return 0;
354 }
355 
357  return 0;
358 }
359 
361  return 0;
362 }
363 
365  return PDB_UdtType::Struct;
366 }
367 
369  return false;
370 }
371 
373  return false;
374 }
375 
377  return false;
378 }
379 
381  return false;
382 }
383 
385  return false;
386 }
387 
389  return false;
390 }
391 
393  return false;
394 }
395 
397  return false;
398 }
399 
401  return false;
402 }
403 
405  return false;
406 }
407 
409  return false;
410 }
411 
413  return false;
414 }
415 
417  return false;
418 }
419 
421  return false;
422 }
423 
425  return false;
426 }
427 
429  return false;
430 }
431 
433  return false;
434 }
435 
437  return false;
438 }
439 
441  return false;
442 }
443 
445  return false;
446 }
447 
449  return false;
450 }
451 
453  return false;
454 }
455 
457  return false;
458 }
459 
461  return false;
462 }
463 
465  return false;
466 }
467 
469  return false;
470 }
471 
473  return false;
474 }
475 
477  return false;
478 }
479 
481  return false;
482 }
483 
485  return false;
486 }
487 
489  return false;
490 }
491 
493  return false;
494 }
495 
497  return false;
498 }
499 
501  return false;
502 }
503 
505  return false;
506 }
507 
509  return false;
510 }
511 
513  return false;
514 }
515 
517  return false;
518 }
519 
521  return false;
522 }
523 
525  return false;
526 }
527 
529  return false;
530 }
531 
533  return false;
534 }
535 
537  return false;
538 }
539 
541  return false;
542 }
543 
545  return false;
546 }
547 
549  return false;
550 }
551 
553  return false;
554 }
555 
557  return false;
558 }
559 
561  return false;
562 }
563 
565  return false;
566 }
567 
569  return false;
570 }
571 
573  return false;
574 }
575 
577  return false;
578 }
579 
581  return false;
582 }
583 
585  return false;
586 }
587 
589  return false;
590 }
591 
593  return false;
594 }
595 
597  return false;
598 }
599 
601  return false;
602 }
603 
605  return false;
606 }
607 
609  return false;
610 }
611 
613  return false;
614 }
615 
617  return false;
618 }
619 
621  return false;
622 }
623 
625  return false;
626 }
627 
629  return false;
630 }
631 
633  return false;
634 }
635 
637  return false;
638 }
639 
641  return false;
642 }
643 
645  return false;
646 }
647 
649  return false;
650 }
651 
653  return false;
654 }
655 
657  return false;
658 }
659 
661  return false;
662 }
663 
665  return false;
666 }
667 
669  return false;
670 }
671 
673  return false;
674 }
675 
677  return false;
678 }
679 
681  return false;
682 }
683 
685  return false;
686 }
687 
689  return false;
690 }
691 
692 std::string NativeRawSymbol::getUnused() const {
693  return {};
694 }
uint32_t getAddressSection() const override
uint32_t getTypeId() const override
uint32_t getLiveRangeStartRelativeVirtualAddress() const override
bool hasManagedCode() const override
uint32_t getRegisterType() const override
bool wasInlined() const override
void getBackEndVersion(VersionInfo &Version) const override
uint32_t getBitPosition() const override
std::string getSymbolsFileName() const override
bool hasSetJump() const override
uint32_t getSlot() const override
int32_t getVirtualBasePointerOffset() const override
bool isReference() const override
uint32_t getNumberOfRegisterIndices() const override
bool hasFarReturn() const override
bool isIntrinsic() const override
PDB_UdtType
These values correspond to the UdtKind enumeration, and are documented here: https://msdn.microsoft.com/en-us/library/wcstk66t.aspx.
Definition: PDBTypes.h:211
uint32_t getNumberOfRows() const override
uint32_t getRank() const override
PDB_BuiltinType getBuiltinType() const override
bool isHLSLData() const override
uint32_t getSubTypeId() const override
PDB_NameSearchFlags
Defines flags used for enumerating child symbols.
Definition: PDBTypes.h:87
uint32_t getVirtualTableShapeId() const override
bool hasStrictGSCheck() const override
bool isConstType() const override
PDB_CallingConv getCallingConvention() const override
uint64_t getLiveRangeLength() const override
uint32_t getBaseSymbolId() const override
uint32_t getUpperBoundId() const override
bool hasEHa() const override
bool isMatrixRowMajor() const override
bool isPureVirtual() const override
bool hasPrivateSymbols() const override
bool isInterfaceUdt() const override
bool hasSecurityChecks() const override
bool hasInlineAttribute() const override
uint32_t getVirtualBaseOffset() const override
bool isRValueReference() const override
uint32_t getTextureSlot() const override
uint32_t getSamplerSlot() const override
uint32_t getNumberOfModifiers() const override
bool isRestrictedType() const override
bool isRefUdt() const override
uint32_t getSymIndexId() const override
uint32_t getStride() const override
bool isIndirectVirtualBaseClass() const override
PDB_UdtType getUdtKind() const override
PDB_Machine getMachineType() const override
uint32_t getVirtualBaseDispIndex() const override
bool isLTCG() const override
bool isOptimizedAway() const override
codeview::RegisterId getLocalBasePointerRegisterId() const override
void getDataBytes(SmallVector< uint8_t, 32 > &Bytes) const override
bool isCxxReturnUdt() const override
uint32_t getOemId() const override
bool getAddressTaken() const override
uint32_t getOemSymbolId() const override
bool hasCastOperator() const override
bool isUnreached() const override
This represents the 'GUID' type from windows.h.
Definition: GUID.h:22
std::unique_ptr< IPDBEnumSymbols > findInlineFramesByRVA(uint32_t RVA) const override
std::unique_ptr< IPDBEnumSymbols > findChildrenByRVA(PDB_SymType Type, StringRef Name, PDB_NameSearchFlags Flags, uint32_t RVA) const override
std::string getUndecoratedName() const override
bool isSplitted() const override
bool isFunction() const override
PDB_DataKind getDataKind() const override
uint32_t getOffsetInUdt() const override
void dump(raw_ostream &OS, int Indent) const override
bool isLocationControlFlowDependent() const override
uint32_t getRelativeVirtualAddress() const override
uint32_t getSizeInUdt() const override
uint64_t getVirtualAddress() const override
int32_t getThisAdjust() const override
uint32_t getClassParentId() const override
bool hasInterruptReturn() const override
PDB_Lang getLanguage() const override
bool isConstructorVirtualBase() const override
uint32_t getSignature() const override
uint32_t getTimeStamp() const override
const char * Name
bool isSafeBuffers() const override
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn.microsoft.com/en-us/library/bkedss5f.aspx.
Definition: PDBTypes.h:157
bool isEditAndContinueEnabled() const override
uint32_t getArrayIndexTypeId() const override
std::string getLibraryName() const override
std::string getUnused() const override
bool getNoStackOrdering() const override
The instances of the Type class are immutable: once they are created, they are never changed...
Definition: Type.h:46
PDB_LocType getLocationType() const override
uint32_t getBaseDataOffset() const override
int32_t getOffset() const override
PDB_DataKind
These values correspond to the DataKind enumeration, and are documented here: https://msdn.microsoft.com/en-us/library/b2x2t313.aspx.
Definition: PDBTypes.h:142
PDB_Cpu getPlatform() const override
Variant getValue() const override
bool isReturnValue() const override
uint32_t getTargetOffset() const override
std::unique_ptr< IPDBEnumSymbols > findChildren(PDB_SymType Type) const override
PDB_MemberAccess getAccess() const override
bool hasConstructor() const override
uint64_t getTargetVirtualAddress() const override
codeview::RegisterId getRegisterId() const override
bool isAcceleratorStubFunction() const override
uint32_t getCount() const override
uint32_t getLexicalParentId() const override
codeview::ThunkOrdinal getThunkOrdinal() const override
PDB_LocType
These values correspond to the LocationType enumeration, and are documented here: https://msdn...
Definition: PDBTypes.h:194
bool isUnalignedType() const override
bool hasInlAsm() const override
bool hasOverloadedOperator() const override
NativeRawSymbol(NativeSession &PDBSession, SymIndexId SymbolId)
uint32_t getNumberOfAcceleratorPointerTags() const override
std::string getSourceFileName() const override
std::unique_ptr< PDBSymbolTypeBuiltin > getVirtualBaseTableType() const override
SourceLanguage
These values correspond to the CV_CFL_LANG enumeration, and are documented here: https://msdn.microsoft.com/en-us/library/bw3aekw6.aspx.
Definition: CodeView.h:143
bool isDataAligned() const override
bool isPointerToMemberFunction() const override
bool isValueUdt() const override
bool isMSILNetmodule() const override
CPUType
These values correspond to the CV_CPU_TYPE_e enumeration, and are documented here: https://msdn...
Definition: CodeView.h:79
uint32_t getMemorySpaceKind() const override
bool isPacked() const override
bool hasNoReturnAttribute() const override
bool isSdl() const override
bool isNaked() const override
bool hasCustomCallingConvention() const override
bool isCode() const override
bool isAcceleratorGroupSharedLocal() const override
bool isMultipleInheritance() const override
uint32_t getUnmodifiedTypeId() const override
bool isManagedCode() const override
uint32_t getLiveRangeStartAddressOffset() const override
bool hasAlloca() const override
bool isPointerBasedOnSymbolValue() const override
uint32_t getBaseDataSlot() const override
bool isCVTCIL() const override
PDB_SymType getSymTag() const override
bool isAcceleratorPointerTagLiveRange() const override
static std::vector< std::string > Flags
Definition: FlagsTest.cpp:8
uint32_t getCountLiveRanges() const override
uint32_t getTargetSection() const override
bool hasEH() const override
bool hasAssignmentOperator() const override
bool hasNoInlineAttribute() const override
uint32_t getUavSlot() const override
uint32_t getLowerBoundId() const override
bool isIntroVirtualFunction() const override
uint32_t getTargetRelativeVirtualAddress() const override
std::string getName() const override
bool hasFramePointer() const override
std::string getCompilerName() const override
bool hasCTypes() const override
uint32_t getNumberOfColumns() const override
uint32_t getToken() const override
bool hasNestedTypes() const override
ThunkOrdinal
These values correspond to the THUNK_ORDINAL enumeration.
Definition: CodeView.h:555
bool hasOptimizedCodeDebugInfo() const override
PDB_BuiltinType
These values correspond to the Basictype enumeration, and are documented here: https://msdn.microsoft.com/en-us/library/4szdtzc3.aspx.
Definition: PDBTypes.h:223
std::string getObjectFileName() const override
bool hasDebugInfo() const override
bool isMSILCode() const override
bool isAggregated() const override
bool isScoped() const override
bool isVirtualInheritance() const override
bool isVolatileType() const override
void getFrontEndVersion(VersionInfo &Version) const override
uint64_t getLength() const override
bool hasSEH() const override
CallingConvention
These values correspond to the CV_call_e enumeration, and are documented at the following locations: ...
Definition: CodeView.h:168
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:44
codeview::GUID getGuid() const override
bool isVirtual() const override
bool isHotpatchable() const override
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
bool isCompilerGenerated() const override
uint32_t getLiveRangeStartAddressSection() const override
bool isSingleInheritance() const override
uint32_t getAge() const override
const uint64_t Version
Definition: InstrProf.h:864
bool isPointerToDataMember() const override
bool isStatic() const override
bool hasLongJump() const override
bool isVirtualBaseClass() const override
uint32_t getAddressOffset() const override
bool isNested() const override
PDB_MemberAccess
Definition: PDBTypes.h:244