LLVM  14.0.0git
NativeTypeEnum.cpp
Go to the documentation of this file.
1 //===- NativeTypeEnum.cpp - info about enum type ----------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
10 
20 
22 
23 #include <cassert>
24 
25 using namespace llvm;
26 using namespace llvm::codeview;
27 using namespace llvm::pdb;
28 
29 namespace {
30 // Yea, this is a pretty terrible class name. But if we have an enum:
31 //
32 // enum Foo {
33 // A,
34 // B
35 // };
36 //
37 // then A and B are the "enumerators" of the "enum" Foo. And we need
38 // to enumerate them.
39 class NativeEnumEnumEnumerators : public IPDBEnumSymbols, TypeVisitorCallbacks {
40 public:
41  NativeEnumEnumEnumerators(NativeSession &Session,
42  const NativeTypeEnum &ClassParent);
43 
44  uint32_t getChildCount() const override;
45  std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
46  std::unique_ptr<PDBSymbol> getNext() override;
47  void reset() override;
48 
49 private:
51  EnumeratorRecord &Record) override;
53  ListContinuationRecord &Record) override;
54 
55  NativeSession &Session;
57  std::vector<EnumeratorRecord> Enumerators;
58  Optional<TypeIndex> ContinuationIndex;
59  uint32_t Index = 0;
60 };
61 } // namespace
62 
63 NativeEnumEnumEnumerators::NativeEnumEnumEnumerators(
64  NativeSession &Session, const NativeTypeEnum &ClassParent)
65  : Session(Session), ClassParent(ClassParent) {
68 
69  ContinuationIndex = ClassParent.getEnumRecord().FieldList;
70  while (ContinuationIndex) {
71  CVType FieldList = Types.getType(*ContinuationIndex);
72  assert(FieldList.kind() == LF_FIELDLIST);
73  ContinuationIndex.reset();
75  }
76 }
77 
80  Enumerators.push_back(Record);
81  return Error::success();
82 }
83 
86  ContinuationIndex = Record.ContinuationIndex;
87  return Error::success();
88 }
89 
90 uint32_t NativeEnumEnumEnumerators::getChildCount() const {
91  return Enumerators.size();
92 }
93 
94 std::unique_ptr<PDBSymbol>
95 NativeEnumEnumEnumerators::getChildAtIndex(uint32_t Index) const {
96  if (Index >= getChildCount())
97  return nullptr;
98 
99  SymIndexId Id = Session.getSymbolCache()
101  ClassParent.getEnumRecord().FieldList, Index,
102  ClassParent, Enumerators[Index]);
103  return Session.getSymbolCache().getSymbolById(Id);
104 }
105 
106 std::unique_ptr<PDBSymbol> NativeEnumEnumEnumerators::getNext() {
107  if (Index >= getChildCount())
108  return nullptr;
109 
110  return getChildAtIndex(Index++);
111 }
112 
113 void NativeEnumEnumEnumerators::reset() { Index = 0; }
114 
117  : NativeRawSymbol(Session, PDB_SymType::Enum, Id), Index(Index),
118  Record(std::move(Record)) {}
119 
121  NativeTypeEnum &UnmodifiedType,
122  codeview::ModifierRecord Modifier)
123  : NativeRawSymbol(Session, PDB_SymType::Enum, Id),
124  UnmodifiedType(&UnmodifiedType), Modifiers(std::move(Modifier)) {}
125 
127 
128 void NativeTypeEnum::dump(raw_ostream &OS, int Indent,
129  PdbSymbolIdField ShowIdFields,
130  PdbSymbolIdField RecurseIdFields) const {
131  NativeRawSymbol::dump(OS, Indent, ShowIdFields, RecurseIdFields);
132 
133  dumpSymbolField(OS, "baseType", static_cast<uint32_t>(getBuiltinType()),
134  Indent);
135  dumpSymbolIdField(OS, "lexicalParentId", 0, Indent, Session,
136  PdbSymbolIdField::LexicalParent, ShowIdFields,
137  RecurseIdFields);
138  dumpSymbolField(OS, "name", getName(), Indent);
139  dumpSymbolIdField(OS, "typeId", getTypeId(), Indent, Session,
140  PdbSymbolIdField::Type, ShowIdFields, RecurseIdFields);
141  if (Modifiers.hasValue())
142  dumpSymbolIdField(OS, "unmodifiedTypeId", getUnmodifiedTypeId(), Indent,
144  RecurseIdFields);
145  dumpSymbolField(OS, "length", getLength(), Indent);
146  dumpSymbolField(OS, "constructor", hasConstructor(), Indent);
147  dumpSymbolField(OS, "constType", isConstType(), Indent);
148  dumpSymbolField(OS, "hasAssignmentOperator", hasAssignmentOperator(), Indent);
149  dumpSymbolField(OS, "hasCastOperator", hasCastOperator(), Indent);
150  dumpSymbolField(OS, "hasNestedTypes", hasNestedTypes(), Indent);
151  dumpSymbolField(OS, "overloadedOperator", hasOverloadedOperator(), Indent);
152  dumpSymbolField(OS, "isInterfaceUdt", isInterfaceUdt(), Indent);
153  dumpSymbolField(OS, "intrinsic", isIntrinsic(), Indent);
154  dumpSymbolField(OS, "nested", isNested(), Indent);
155  dumpSymbolField(OS, "packed", isPacked(), Indent);
156  dumpSymbolField(OS, "isRefUdt", isRefUdt(), Indent);
157  dumpSymbolField(OS, "scoped", isScoped(), Indent);
158  dumpSymbolField(OS, "unalignedType", isUnalignedType(), Indent);
159  dumpSymbolField(OS, "isValueUdt", isValueUdt(), Indent);
160  dumpSymbolField(OS, "volatileType", isVolatileType(), Indent);
161 }
162 
163 std::unique_ptr<IPDBEnumSymbols>
165  if (Type != PDB_SymType::Data)
166  return std::make_unique<NullEnumerator<PDBSymbol>>();
167 
168  const NativeTypeEnum *ClassParent = nullptr;
169  if (!Modifiers)
170  ClassParent = this;
171  else
173  return std::make_unique<NativeEnumEnumEnumerators>(Session, *ClassParent);
174 }
175 
177 
179  if (UnmodifiedType)
180  return UnmodifiedType->getBuiltinType();
181 
182  Session.getSymbolCache().findSymbolByTypeIndex(Record->getUnderlyingType());
183 
184  codeview::TypeIndex Underlying = Record->getUnderlyingType();
185 
186  // This indicates a corrupt record.
187  if (!Underlying.isSimple() ||
188  Underlying.getSimpleMode() != SimpleTypeMode::Direct) {
189  return PDB_BuiltinType::None;
190  }
191 
192  switch (Underlying.getSimpleKind()) {
193  case SimpleTypeKind::Boolean128:
194  case SimpleTypeKind::Boolean64:
195  case SimpleTypeKind::Boolean32:
196  case SimpleTypeKind::Boolean16:
197  case SimpleTypeKind::Boolean8:
198  return PDB_BuiltinType::Bool;
199  case SimpleTypeKind::NarrowCharacter:
200  case SimpleTypeKind::UnsignedCharacter:
201  case SimpleTypeKind::SignedCharacter:
202  return PDB_BuiltinType::Char;
203  case SimpleTypeKind::WideCharacter:
205  case SimpleTypeKind::Character16:
207  case SimpleTypeKind::Character32:
209  case SimpleTypeKind::Int128:
210  case SimpleTypeKind::Int128Oct:
212  case SimpleTypeKind::Int16Short:
214  case SimpleTypeKind::Int32Long:
216  case SimpleTypeKind::Int64Quad:
217  return PDB_BuiltinType::Int;
218  case SimpleTypeKind::UInt128:
219  case SimpleTypeKind::UInt128Oct:
221  case SimpleTypeKind::UInt16Short:
223  case SimpleTypeKind::UInt32Long:
225  case SimpleTypeKind::UInt64Quad:
226  return PDB_BuiltinType::UInt;
227  case SimpleTypeKind::HResult:
229  case SimpleTypeKind::Complex16:
230  case SimpleTypeKind::Complex32:
231  case SimpleTypeKind::Complex32PartialPrecision:
232  case SimpleTypeKind::Complex64:
233  case SimpleTypeKind::Complex80:
234  case SimpleTypeKind::Complex128:
236  case SimpleTypeKind::Float16:
237  case SimpleTypeKind::Float32:
238  case SimpleTypeKind::Float32PartialPrecision:
239  case SimpleTypeKind::Float48:
240  case SimpleTypeKind::Float64:
241  case SimpleTypeKind::Float80:
242  case SimpleTypeKind::Float128:
243  return PDB_BuiltinType::Float;
244  default:
245  return PDB_BuiltinType::None;
246  }
247  llvm_unreachable("Unreachable");
248 }
249 
252 }
253 
255  if (UnmodifiedType)
256  return UnmodifiedType->hasConstructor();
257 
258  return bool(Record->getOptions() &
260 }
261 
263  if (UnmodifiedType)
265 
266  return bool(Record->getOptions() &
268 }
269 
271  if (UnmodifiedType)
272  return UnmodifiedType->hasNestedTypes();
273 
274  return bool(Record->getOptions() &
276 }
277 
279  if (UnmodifiedType)
280  return UnmodifiedType->isIntrinsic();
281 
282  return bool(Record->getOptions() & codeview::ClassOptions::Intrinsic);
283 }
284 
286  if (UnmodifiedType)
288 
289  return bool(Record->getOptions() &
291 }
292 
294  if (UnmodifiedType)
295  return UnmodifiedType->getLength();
296 
298  Record->getUnderlyingType());
299  const auto UnderlyingType =
301  return UnderlyingType ? UnderlyingType->getLength() : 0;
302 }
303 
304 std::string NativeTypeEnum::getName() const {
305  if (UnmodifiedType)
306  return UnmodifiedType->getName();
307 
308  return std::string(Record->getName());
309 }
310 
312  if (UnmodifiedType)
313  return UnmodifiedType->isNested();
314 
315  return bool(Record->getOptions() & codeview::ClassOptions::Nested);
316 }
317 
319  if (UnmodifiedType)
321 
322  return bool(Record->getOptions() &
324 }
325 
327  if (UnmodifiedType)
328  return UnmodifiedType->isPacked();
329 
330  return bool(Record->getOptions() & codeview::ClassOptions::Packed);
331 }
332 
334  if (UnmodifiedType)
335  return UnmodifiedType->isScoped();
336 
337  return bool(Record->getOptions() & codeview::ClassOptions::Scoped);
338 }
339 
341  if (UnmodifiedType)
342  return UnmodifiedType->getTypeId();
343 
345  Record->getUnderlyingType());
346 }
347 
348 bool NativeTypeEnum::isRefUdt() const { return false; }
349 
350 bool NativeTypeEnum::isValueUdt() const { return false; }
351 
352 bool NativeTypeEnum::isInterfaceUdt() const { return false; }
353 
355  if (!Modifiers)
356  return false;
357  return ((Modifiers->getModifiers() & ModifierOptions::Const) !=
359 }
360 
362  if (!Modifiers)
363  return false;
364  return ((Modifiers->getModifiers() & ModifierOptions::Volatile) !=
366 }
367 
369  if (!Modifiers)
370  return false;
371  return ((Modifiers->getModifiers() & ModifierOptions::Unaligned) !=
373 }
374 
376  if (UnmodifiedType)
378 
380  getTypeId());
381 }
llvm::pdb::NativeTypeEnum::isVolatileType
bool isVolatileType() const override
Definition: NativeTypeEnum.cpp:361
llvm::pdb::NativeTypeEnum::getSymTag
PDB_SymType getSymTag() const override
Definition: NativeTypeEnum.cpp:176
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
llvm::pdb::PDB_BuiltinType::Char
@ Char
TpiStream.h
llvm::pdb::NativeTypeEnum::isPacked
bool isPacked() const override
Definition: NativeTypeEnum.cpp:326
llvm::pdb::NativeTypeEnum::isScoped
bool isScoped() const override
Definition: NativeTypeEnum.cpp:333
llvm::pdb::Int64
@ Int64
Definition: PDBTypes.h:399
llvm::codeview::TypeVisitorCallbacks
Definition: TypeVisitorCallbacks.h:18
llvm::pdb::NativeTypeEnum::getLength
uint64_t getLength() const override
Definition: NativeTypeEnum.cpp:293
llvm::codeview::ClassOptions::HasConstructorOrDestructor
@ HasConstructorOrDestructor
llvm::pdb::UInt16
@ UInt16
Definition: PDBTypes.h:403
llvm::pdb::NativeTypeEnum::isUnalignedType
bool isUnalignedType() const override
Definition: NativeTypeEnum.cpp:368
llvm::pdb::NativeSession::getPDBFile
PDBFile & getPDBFile()
Definition: NativeSession.h:105
llvm::Error::success
static ErrorSuccess success()
Create a success value.
Definition: Error.h:331
llvm::pdb::NativeTypeEnum::isValueUdt
bool isValueUdt() const override
Definition: NativeTypeEnum.cpp:350
llvm::pdb::PDB_BuiltinType::Char32
@ Char32
llvm::pdb::PdbSymbolIdField::Type
@ Type
llvm::pdb::PDB_BuiltinType::HResult
@ HResult
PDBSymbolTypeBuiltin.h
llvm::BitmaskEnumDetail::Underlying
std::underlying_type_t< E > Underlying(E Val)
Check that Val is in range for E, and return Val cast to E's underlying type.
Definition: BitmaskEnum.h:90
llvm::Type
The instances of the Type class are immutable: once they are created, they are never changed.
Definition: Type.h:45
llvm::pdb::Bool
@ Bool
llvm::Optional
Definition: APInt.h:33
llvm::pdb::PdbSymbolIdField::UnmodifiedType
@ UnmodifiedType
llvm::pdb::SymbolCache::getOrCreateFieldListMember
SymIndexId getOrCreateFieldListMember(codeview::TypeIndex FieldListTI, uint32_t Index, Args &&... ConstructorArgs)
Definition: SymbolCache.h:151
llvm::codeview::ClassOptions::HasOverloadedOperator
@ HasOverloadedOperator
NativeSymbolEnumerator.h
llvm::pdb::PDB_SymType
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:243
llvm::codeview::ClassOptions::ContainsNestedClass
@ ContainsNestedClass
llvm::codeview::ClassOptions::Scoped
@ Scoped
llvm::pdb::PdbSymbolIdField::ClassParent
@ ClassParent
llvm::codeview::visitMemberRecordStream
Error visitMemberRecordStream(ArrayRef< uint8_t > FieldList, TypeVisitorCallbacks &Callbacks)
Definition: CVTypeVisitor.cpp:270
llvm::codeview::EnumRecord
Definition: TypeRecord.h:518
llvm::codeview::CVMemberRecord
Definition: TypeRecord.h:34
llvm::pdb::NativeTypeEnum::findChildren
std::unique_ptr< IPDBEnumSymbols > findChildren(PDB_SymType Type) const override
Definition: NativeTypeEnum.cpp:164
llvm::pdb::NativeTypeEnum::~NativeTypeEnum
~NativeTypeEnum() override
Definition: NativeTypeEnum.cpp:126
llvm::pdb::SymIndexId
uint32_t SymIndexId
Definition: PDBTypes.h:26
llvm::pdb::PdbSymbolIdField::LexicalParent
@ LexicalParent
llvm::codeview::LazyRandomTypeCollection
Provides amortized O(1) random access to a CodeView type stream.
Definition: LazyRandomTypeCollection.h:49
llvm::pdb::UInt32
@ UInt32
Definition: PDBTypes.h:404
llvm::pdb::PDB_BuiltinType::Int
@ Int
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
llvm::codeview::ListContinuationRecord
LF_INDEX - Used to chain two large LF_FIELDLIST or LF_METHODLIST records together.
Definition: TypeRecord.h:914
llvm::codeview::ModifierRecord
Definition: TypeRecord.h:129
llvm::pdb::NativeTypeEnum::NativeTypeEnum
NativeTypeEnum(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI, codeview::EnumRecord Record)
Definition: NativeTypeEnum.cpp:115
llvm::pdb::NativeTypeEnum::isRefUdt
bool isRefUdt() const override
Definition: NativeTypeEnum.cpp:348
FormatVariadic.h
llvm::pdb::IPDBSession::getConcreteSymbolById
std::unique_ptr< T > getConcreteSymbolById(SymIndexId SymbolId) const
Definition: IPDBSession.h:41
llvm::None
const NoneType None
Definition: None.h:23
llvm::codeview::ClassOptions::Intrinsic
@ Intrinsic
llvm::pdb::NativeTypeEnum::hasAssignmentOperator
bool hasAssignmentOperator() const override
Definition: NativeTypeEnum.cpp:262
llvm::pdb::PDB_BuiltinType::UInt
@ UInt
llvm::pdb::NativeTypeEnum::UnmodifiedType
NativeTypeEnum * UnmodifiedType
Definition: NativeTypeEnum.h:67
llvm::pdb
Definition: ConcreteSymbolEnumerator.h:20
llvm::pdb::NativeTypeEnum::isNested
bool isNested() const override
Definition: NativeTypeEnum.cpp:311
llvm::pdb::SymbolCache::getSymbolById
std::unique_ptr< PDBSymbol > getSymbolById(SymIndexId SymbolId) const
Definition: SymbolCache.cpp:242
llvm::pdb::PDB_BuiltinType::Char16
@ Char16
llvm::pdb::NativeTypeEnum
Definition: NativeTypeEnum.h:23
llvm::pdb::NativeTypeEnum::hasConstructor
bool hasConstructor() const override
Definition: NativeTypeEnum.cpp:254
llvm::codeview::EnumeratorRecord
Definition: TypeRecord.h:829
Index
uint32_t Index
Definition: ELFObjHandler.cpp:84
uint64_t
TypeRecord.h
llvm::pdb::PDB_BuiltinType::WCharT
@ WCharT
llvm::pdb::dumpSymbolField
void dumpSymbolField(raw_ostream &OS, StringRef Name, T Value, int Indent)
Definition: PDBExtras.h:47
llvm::pdb::NativeTypeEnum::getUnmodifiedTypeId
SymIndexId getUnmodifiedTypeId() const override
Definition: NativeTypeEnum.cpp:250
llvm::pdb::Int32
@ Int32
Definition: PDBTypes.h:398
llvm::pdb::NativeTypeEnum::dump
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
Definition: NativeTypeEnum.cpp:128
llvm::codeview::ContinuationRecordKind::FieldList
@ FieldList
llvm::pdb::dumpSymbolIdField
void dumpSymbolIdField(raw_ostream &OS, StringRef Name, SymIndexId Value, int Indent, const IPDBSession &Session, PdbSymbolIdField FieldId, PdbSymbolIdField ShowFlags, PdbSymbolIdField RecurseFlags)
Definition: PDBSymbol.cpp:202
llvm::pdb::PDB_BuiltinType::None
@ None
llvm::pdb::NativeSession::getSymbolCache
SymbolCache & getSymbolCache()
Definition: NativeSession.h:109
llvm::pdb::NativeTypeEnum::isConstType
bool isConstType() const override
Definition: NativeTypeEnum.cpp:354
assert
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
llvm::move
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition: STLExtras.h:1658
llvm::pdb::NativeSymbolEnumerator
Definition: NativeSymbolEnumerator.h:20
NativeEnumTypes.h
llvm::pdb::NativeTypeEnum::hasCastOperator
bool hasCastOperator() const override
Definition: NativeTypeEnum.cpp:285
llvm::pdb::PDB_SymType::Data
@ Data
llvm::Record
Definition: Record.h:1486
llvm::pdb::NativeRawSymbol::getSymIndexId
SymIndexId getSymIndexId() const override
Definition: NativeRawSymbol.cpp:292
llvm::pdb::NativeTypeEnum::isInterfaceUdt
bool isInterfaceUdt() const override
Definition: NativeTypeEnum.cpp:352
llvm::codeview::CVRecord< TypeLeafKind >
llvm::codeview::ClassOptions::HasOverloadedAssignmentOperator
@ HasOverloadedAssignmentOperator
llvm_unreachable
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
Definition: ErrorHandling.h:134
llvm::cantFail
void cantFail(Error Err, const char *Msg=nullptr)
Report a fatal error if Err is a failure value.
Definition: Error.h:747
uint32_t
llvm::pdb::PDB_BuiltinType
PDB_BuiltinType
These values correspond to the Basictype enumeration, and are documented here: https://msdn....
Definition: PDBTypes.h:335
llvm::pdb::NativeTypeEnum::hasOverloadedOperator
bool hasOverloadedOperator() const override
Definition: NativeTypeEnum.cpp:318
llvm::pdb::PDB_SymType::Enum
@ Enum
llvm::pdb::NativeTypeEnum::getBuiltinType
PDB_BuiltinType getBuiltinType() const override
Definition: NativeTypeEnum.cpp:178
llvm::pdb::PDB_BuiltinType::Complex
@ Complex
llvm::pdb::PDBFile::getPDBTpiStream
Expected< TpiStream & > getPDBTpiStream()
Definition: PDBFile.cpp:302
llvm::pdb::NativeTypeBuiltin::Session
NativeSession & Session
Definition: NativeTypeBuiltin.h:40
llvm::codeview::ClassOptions::Packed
@ Packed
llvm::pdb::NativeTypeEnum::getTypeId
SymIndexId getTypeId() const override
Definition: NativeTypeEnum.cpp:340
llvm::pdb::NativeTypeBuiltin
Definition: NativeTypeBuiltin.h:21
llvm::pdb::SymbolCache::findSymbolByTypeIndex
SymIndexId findSymbolByTypeIndex(codeview::TypeIndex TI) const
Definition: SymbolCache.cpp:153
std
Definition: BitVector.h:838
llvm::pdb::PDB_BuiltinType::Float
@ Float
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition: Error.h:157
CVTypeVisitor.h
llvm::pdb::NativeTypeEnum::getName
std::string getName() const override
Definition: NativeTypeEnum.cpp:304
llvm::pdb::Int16
@ Int16
Definition: PDBTypes.h:397
visitKnownMember
static Error visitKnownMember(CVMemberRecord &Record, TypeVisitorCallbacks &Callbacks)
Definition: CVTypeVisitor.cpp:33
llvm::pdb::NativeRawSymbol::dump
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
Definition: NativeRawSymbol.cpp:22
llvm::pdb::NativeSession
Definition: NativeSession.h:28
NativeTypeEnum.h
llvm::codeview
Definition: AppendingTypeTableBuilder.h:22
llvm::pdb::PdbSymbolIdField
PdbSymbolIdField
Definition: IPDBRawSymbol.h:24
llvm::pdb::NativeTypeEnum::Modifiers
Optional< codeview::ModifierRecord > Modifiers
Definition: NativeTypeEnum.h:68
llvm::codeview::ClassOptions::HasConversionOperator
@ HasConversionOperator
NativeTypeBuiltin.h
llvm::Record::getName
StringRef getName() const
Definition: Record.h:1552
PDBFile.h
llvm::pdb::PDBSymbolTypeBuiltin
Definition: PDBSymbolTypeBuiltin.h:20
SymbolCache.h
llvm::pdb::TpiStream
Definition: TpiStream.h:33
llvm::pdb::NativeTypeEnum::hasNestedTypes
bool hasNestedTypes() const override
Definition: NativeTypeEnum.cpp:270
llvm::codeview::TypeIndex
A 32-bit type reference.
Definition: TypeIndex.h:96
llvm::pdb::SymbolCache::getNativeSymbolById
NativeRawSymbol & getNativeSymbolById(SymIndexId SymbolId) const
Definition: SymbolCache.cpp:258
llvm::pdb::NativeRawSymbol::Session
NativeSession & Session
Definition: NativeRawSymbol.h:232
llvm::pdb::IPDBEnumChildren< PDBSymbol >
llvm::pdb::NativeTypeEnum::isIntrinsic
bool isIntrinsic() const override
Definition: NativeTypeEnum.cpp:278
llvm::codeview::LazyRandomTypeCollection::getType
CVType getType(TypeIndex Index) override
Definition: LazyRandomTypeCollection.cpp:90
llvm::AMDGPU::VGPRIndexMode::Id
Id
Definition: SIDefines.h:232
llvm::pdb::UInt64
@ UInt64
Definition: PDBTypes.h:405
llvm::pdb::TpiStream::typeCollection
codeview::LazyRandomTypeCollection & typeCollection()
Definition: TpiStream.h:58
llvm::codeview::ClassOptions::Nested
@ Nested
llvm::pdb::NativeTypeEnum::getUnderlyingBuiltinType
const NativeTypeBuiltin & getUnderlyingBuiltinType() const
Definition: NativeTypeEnum.cpp:375
llvm::pdb::NativeRawSymbol
Definition: NativeRawSymbol.h:21