LLVM  15.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 
21 
22 #include <cassert>
23 
24 using namespace llvm;
25 using namespace llvm::codeview;
26 using namespace llvm::pdb;
27 
28 namespace {
29 // Yea, this is a pretty terrible class name. But if we have an enum:
30 //
31 // enum Foo {
32 // A,
33 // B
34 // };
35 //
36 // then A and B are the "enumerators" of the "enum" Foo. And we need
37 // to enumerate them.
38 class NativeEnumEnumEnumerators : public IPDBEnumSymbols, TypeVisitorCallbacks {
39 public:
40  NativeEnumEnumEnumerators(NativeSession &Session,
41  const NativeTypeEnum &ClassParent);
42 
43  uint32_t getChildCount() const override;
44  std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
45  std::unique_ptr<PDBSymbol> getNext() override;
46  void reset() override;
47 
48 private:
50  EnumeratorRecord &Record) override;
52  ListContinuationRecord &Record) override;
53 
54  NativeSession &Session;
56  std::vector<EnumeratorRecord> Enumerators;
57  Optional<TypeIndex> ContinuationIndex;
58  uint32_t Index = 0;
59 };
60 } // namespace
61 
62 NativeEnumEnumEnumerators::NativeEnumEnumEnumerators(
63  NativeSession &Session, const NativeTypeEnum &ClassParent)
64  : Session(Session), ClassParent(ClassParent) {
67 
68  ContinuationIndex = ClassParent.getEnumRecord().FieldList;
69  while (ContinuationIndex) {
70  CVType FieldList = Types.getType(*ContinuationIndex);
71  assert(FieldList.kind() == LF_FIELDLIST);
72  ContinuationIndex.reset();
74  }
75 }
76 
79  Enumerators.push_back(Record);
80  return Error::success();
81 }
82 
85  ContinuationIndex = Record.ContinuationIndex;
86  return Error::success();
87 }
88 
89 uint32_t NativeEnumEnumEnumerators::getChildCount() const {
90  return Enumerators.size();
91 }
92 
93 std::unique_ptr<PDBSymbol>
94 NativeEnumEnumEnumerators::getChildAtIndex(uint32_t Index) const {
95  if (Index >= getChildCount())
96  return nullptr;
97 
98  SymIndexId Id = Session.getSymbolCache()
100  ClassParent.getEnumRecord().FieldList, Index,
101  ClassParent, Enumerators[Index]);
102  return Session.getSymbolCache().getSymbolById(Id);
103 }
104 
105 std::unique_ptr<PDBSymbol> NativeEnumEnumEnumerators::getNext() {
106  if (Index >= getChildCount())
107  return nullptr;
108 
109  return getChildAtIndex(Index++);
110 }
111 
112 void NativeEnumEnumEnumerators::reset() { Index = 0; }
113 
115  TypeIndex Index, EnumRecord Record)
116  : NativeRawSymbol(Session, PDB_SymType::Enum, Id), Index(Index),
117  Record(std::move(Record)) {}
118 
120  NativeTypeEnum &UnmodifiedType,
121  codeview::ModifierRecord Modifier)
122  : NativeRawSymbol(Session, PDB_SymType::Enum, Id),
123  UnmodifiedType(&UnmodifiedType), Modifiers(std::move(Modifier)) {}
124 
126 
127 void NativeTypeEnum::dump(raw_ostream &OS, int Indent,
128  PdbSymbolIdField ShowIdFields,
129  PdbSymbolIdField RecurseIdFields) const {
130  NativeRawSymbol::dump(OS, Indent, ShowIdFields, RecurseIdFields);
131 
132  dumpSymbolField(OS, "baseType", static_cast<uint32_t>(getBuiltinType()),
133  Indent);
134  dumpSymbolIdField(OS, "lexicalParentId", 0, Indent, Session,
135  PdbSymbolIdField::LexicalParent, ShowIdFields,
136  RecurseIdFields);
137  dumpSymbolField(OS, "name", getName(), Indent);
138  dumpSymbolIdField(OS, "typeId", getTypeId(), Indent, Session,
139  PdbSymbolIdField::Type, ShowIdFields, RecurseIdFields);
140  if (Modifiers.hasValue())
141  dumpSymbolIdField(OS, "unmodifiedTypeId", getUnmodifiedTypeId(), Indent,
143  RecurseIdFields);
144  dumpSymbolField(OS, "length", getLength(), Indent);
145  dumpSymbolField(OS, "constructor", hasConstructor(), Indent);
146  dumpSymbolField(OS, "constType", isConstType(), Indent);
147  dumpSymbolField(OS, "hasAssignmentOperator", hasAssignmentOperator(), Indent);
148  dumpSymbolField(OS, "hasCastOperator", hasCastOperator(), Indent);
149  dumpSymbolField(OS, "hasNestedTypes", hasNestedTypes(), Indent);
150  dumpSymbolField(OS, "overloadedOperator", hasOverloadedOperator(), Indent);
151  dumpSymbolField(OS, "isInterfaceUdt", isInterfaceUdt(), Indent);
152  dumpSymbolField(OS, "intrinsic", isIntrinsic(), Indent);
153  dumpSymbolField(OS, "nested", isNested(), Indent);
154  dumpSymbolField(OS, "packed", isPacked(), Indent);
155  dumpSymbolField(OS, "isRefUdt", isRefUdt(), Indent);
156  dumpSymbolField(OS, "scoped", isScoped(), Indent);
157  dumpSymbolField(OS, "unalignedType", isUnalignedType(), Indent);
158  dumpSymbolField(OS, "isValueUdt", isValueUdt(), Indent);
159  dumpSymbolField(OS, "volatileType", isVolatileType(), Indent);
160 }
161 
162 std::unique_ptr<IPDBEnumSymbols>
164  if (Type != PDB_SymType::Data)
165  return std::make_unique<NullEnumerator<PDBSymbol>>();
166 
167  const NativeTypeEnum *ClassParent = nullptr;
168  if (!Modifiers)
169  ClassParent = this;
170  else
172  return std::make_unique<NativeEnumEnumEnumerators>(Session, *ClassParent);
173 }
174 
176 
178  if (UnmodifiedType)
179  return UnmodifiedType->getBuiltinType();
180 
181  Session.getSymbolCache().findSymbolByTypeIndex(Record->getUnderlyingType());
182 
183  codeview::TypeIndex Underlying = Record->getUnderlyingType();
184 
185  // This indicates a corrupt record.
186  if (!Underlying.isSimple() ||
187  Underlying.getSimpleMode() != SimpleTypeMode::Direct) {
188  return PDB_BuiltinType::None;
189  }
190 
191  switch (Underlying.getSimpleKind()) {
192  case SimpleTypeKind::Boolean128:
193  case SimpleTypeKind::Boolean64:
194  case SimpleTypeKind::Boolean32:
195  case SimpleTypeKind::Boolean16:
196  case SimpleTypeKind::Boolean8:
197  return PDB_BuiltinType::Bool;
198  case SimpleTypeKind::NarrowCharacter:
199  case SimpleTypeKind::UnsignedCharacter:
200  case SimpleTypeKind::SignedCharacter:
201  return PDB_BuiltinType::Char;
202  case SimpleTypeKind::WideCharacter:
204  case SimpleTypeKind::Character16:
206  case SimpleTypeKind::Character32:
208  case SimpleTypeKind::Character8:
209  return PDB_BuiltinType::Char8;
210  case SimpleTypeKind::Int128:
211  case SimpleTypeKind::Int128Oct:
213  case SimpleTypeKind::Int16Short:
215  case SimpleTypeKind::Int32Long:
217  case SimpleTypeKind::Int64Quad:
218  return PDB_BuiltinType::Int;
219  case SimpleTypeKind::UInt128:
220  case SimpleTypeKind::UInt128Oct:
222  case SimpleTypeKind::UInt16Short:
224  case SimpleTypeKind::UInt32Long:
226  case SimpleTypeKind::UInt64Quad:
227  return PDB_BuiltinType::UInt;
228  case SimpleTypeKind::HResult:
230  case SimpleTypeKind::Complex16:
231  case SimpleTypeKind::Complex32:
232  case SimpleTypeKind::Complex32PartialPrecision:
233  case SimpleTypeKind::Complex64:
234  case SimpleTypeKind::Complex80:
235  case SimpleTypeKind::Complex128:
237  case SimpleTypeKind::Float16:
238  case SimpleTypeKind::Float32:
239  case SimpleTypeKind::Float32PartialPrecision:
240  case SimpleTypeKind::Float48:
241  case SimpleTypeKind::Float64:
242  case SimpleTypeKind::Float80:
243  case SimpleTypeKind::Float128:
244  return PDB_BuiltinType::Float;
245  default:
246  return PDB_BuiltinType::None;
247  }
248  llvm_unreachable("Unreachable");
249 }
250 
253 }
254 
256  if (UnmodifiedType)
257  return UnmodifiedType->hasConstructor();
258 
259  return bool(Record->getOptions() &
261 }
262 
264  if (UnmodifiedType)
266 
267  return bool(Record->getOptions() &
269 }
270 
272  if (UnmodifiedType)
273  return UnmodifiedType->hasNestedTypes();
274 
275  return bool(Record->getOptions() &
277 }
278 
280  if (UnmodifiedType)
281  return UnmodifiedType->isIntrinsic();
282 
283  return bool(Record->getOptions() & codeview::ClassOptions::Intrinsic);
284 }
285 
287  if (UnmodifiedType)
289 
290  return bool(Record->getOptions() &
292 }
293 
295  if (UnmodifiedType)
296  return UnmodifiedType->getLength();
297 
299  Record->getUnderlyingType());
300  const auto UnderlyingType =
302  return UnderlyingType ? UnderlyingType->getLength() : 0;
303 }
304 
305 std::string NativeTypeEnum::getName() const {
306  if (UnmodifiedType)
307  return UnmodifiedType->getName();
308 
309  return std::string(Record->getName());
310 }
311 
313  if (UnmodifiedType)
314  return UnmodifiedType->isNested();
315 
316  return bool(Record->getOptions() & codeview::ClassOptions::Nested);
317 }
318 
320  if (UnmodifiedType)
322 
323  return bool(Record->getOptions() &
325 }
326 
328  if (UnmodifiedType)
329  return UnmodifiedType->isPacked();
330 
331  return bool(Record->getOptions() & codeview::ClassOptions::Packed);
332 }
333 
335  if (UnmodifiedType)
336  return UnmodifiedType->isScoped();
337 
338  return bool(Record->getOptions() & codeview::ClassOptions::Scoped);
339 }
340 
342  if (UnmodifiedType)
343  return UnmodifiedType->getTypeId();
344 
346  Record->getUnderlyingType());
347 }
348 
349 bool NativeTypeEnum::isRefUdt() const { return false; }
350 
351 bool NativeTypeEnum::isValueUdt() const { return false; }
352 
353 bool NativeTypeEnum::isInterfaceUdt() const { return false; }
354 
356  if (!Modifiers)
357  return false;
358  return ((Modifiers->getModifiers() & ModifierOptions::Const) !=
360 }
361 
363  if (!Modifiers)
364  return false;
365  return ((Modifiers->getModifiers() & ModifierOptions::Volatile) !=
367 }
368 
370  if (!Modifiers)
371  return false;
372  return ((Modifiers->getModifiers() & ModifierOptions::Unaligned) !=
374 }
375 
377  if (UnmodifiedType)
379 
381  getTypeId());
382 }
llvm::pdb::NativeTypeEnum::isVolatileType
bool isVolatileType() const override
Definition: NativeTypeEnum.cpp:362
llvm::pdb::NativeTypeEnum::getSymTag
PDB_SymType getSymTag() const override
Definition: NativeTypeEnum.cpp:175
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::pdb::PDB_BuiltinType::Char
@ Char
TpiStream.h
llvm::pdb::NativeTypeEnum::isPacked
bool isPacked() const override
Definition: NativeTypeEnum.cpp:327
llvm::pdb::NativeTypeEnum::isScoped
bool isScoped() const override
Definition: NativeTypeEnum.cpp:334
llvm::pdb::Int64
@ Int64
Definition: PDBTypes.h:400
llvm::codeview::TypeVisitorCallbacks
Definition: TypeVisitorCallbacks.h:18
llvm::pdb::NativeTypeEnum::getLength
uint64_t getLength() const override
Definition: NativeTypeEnum.cpp:294
llvm::codeview::ClassOptions::HasConstructorOrDestructor
@ HasConstructorOrDestructor
llvm::pdb::PDB_BuiltinType::Char8
@ Char8
llvm::pdb::UInt16
@ UInt16
Definition: PDBTypes.h:404
llvm::pdb::NativeTypeEnum::isUnalignedType
bool isUnalignedType() const override
Definition: NativeTypeEnum.cpp:369
llvm::pdb::NativeSession::getPDBFile
PDBFile & getPDBFile()
Definition: NativeSession.h:109
llvm::Error::success
static ErrorSuccess success()
Create a success value.
Definition: Error.h:329
llvm::pdb::NativeTypeEnum::isValueUdt
bool isValueUdt() const override
Definition: NativeTypeEnum.cpp:351
llvm::pdb::PDB_BuiltinType::Char32
@ Char32
llvm::pdb::PdbSymbolIdField::Type
@ Type
llvm::pdb::PDB_BuiltinType::HResult
@ HResult
PDBSymbolTypeBuiltin.h
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:157
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:271
llvm::codeview::EnumRecord
Definition: TypeRecord.h:519
llvm::codeview::CVMemberRecord
Definition: TypeRecord.h:34
llvm::pdb::NativeTypeEnum::findChildren
std::unique_ptr< IPDBEnumSymbols > findChildren(PDB_SymType Type) const override
Definition: NativeTypeEnum.cpp:163
llvm::pdb::NativeTypeEnum::~NativeTypeEnum
~NativeTypeEnum() override
llvm::pdb::SymIndexId
uint32_t SymIndexId
Definition: PDBTypes.h:26
LazyRandomTypeCollection.h
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:405
llvm::dwarf::Index
Index
Definition: Dwarf.h:472
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:54
llvm::codeview::ListContinuationRecord
LF_INDEX - Used to chain two large LF_FIELDLIST or LF_METHODLIST records together.
Definition: TypeRecord.h:915
llvm::codeview::ModifierRecord
Definition: TypeRecord.h:130
llvm::pdb::NativeTypeEnum::NativeTypeEnum
NativeTypeEnum(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI, codeview::EnumRecord Record)
Definition: NativeTypeEnum.cpp:114
llvm::pdb::NativeTypeEnum::isRefUdt
bool isRefUdt() const override
Definition: NativeTypeEnum.cpp:349
llvm::pdb::IPDBSession::getConcreteSymbolById
std::unique_ptr< T > getConcreteSymbolById(SymIndexId SymbolId) const
Definition: IPDBSession.h:41
llvm::None
const NoneType None
Definition: None.h:24
llvm::codeview::ClassOptions::Intrinsic
@ Intrinsic
llvm::pdb::NativeTypeEnum::hasAssignmentOperator
bool hasAssignmentOperator() const override
Definition: NativeTypeEnum.cpp:263
llvm::pdb::PDB_BuiltinType::UInt
@ UInt
llvm::pdb::NativeTypeEnum::UnmodifiedType
NativeTypeEnum * UnmodifiedType
Definition: NativeTypeEnum.h:69
llvm::pdb
Definition: ConcreteSymbolEnumerator.h:20
llvm::pdb::NativeTypeEnum::isNested
bool isNested() const override
Definition: NativeTypeEnum.cpp:312
llvm::pdb::SymbolCache::getSymbolById
std::unique_ptr< PDBSymbol > getSymbolById(SymIndexId SymbolId) const
Definition: SymbolCache.cpp:247
llvm::pdb::PDB_BuiltinType::Char16
@ Char16
llvm::pdb::NativeTypeEnum
Definition: NativeTypeEnum.h:25
llvm::pdb::NativeTypeEnum::hasConstructor
bool hasConstructor() const override
Definition: NativeTypeEnum.cpp:255
llvm::codeview::EnumeratorRecord
Definition: TypeRecord.h:830
uint64_t
TypeRecord.h
llvm::BitmaskEnumDetail::Underlying
constexpr 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::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:251
llvm::pdb::Int32
@ Int32
Definition: PDBTypes.h:399
llvm::pdb::NativeTypeEnum::dump
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
Definition: NativeTypeEnum.cpp:127
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:113
llvm::pdb::NativeTypeEnum::isConstType
bool isConstType() const override
Definition: NativeTypeEnum.cpp:355
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:1665
llvm::pdb::NativeSymbolEnumerator
Definition: NativeSymbolEnumerator.h:24
llvm::pdb::NativeTypeEnum::hasCastOperator
bool hasCastOperator() const override
Definition: NativeTypeEnum.cpp:286
llvm::pdb::PDB_SymType::Data
@ Data
llvm::Record
Definition: Record.h:1508
llvm::pdb::NativeRawSymbol::getSymIndexId
SymIndexId getSymIndexId() const override
Definition: NativeRawSymbol.cpp:291
llvm::pdb::NativeTypeEnum::isInterfaceUdt
bool isInterfaceUdt() const override
Definition: NativeTypeEnum.cpp:353
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:143
llvm::cantFail
void cantFail(Error Err, const char *Msg=nullptr)
Report a fatal error if Err is a failure value.
Definition: Error.h:745
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:319
llvm::pdb::PDB_SymType::Enum
@ Enum
llvm::pdb::NativeTypeEnum::getBuiltinType
PDB_BuiltinType getBuiltinType() const override
Definition: NativeTypeEnum.cpp:177
llvm::pdb::PDB_BuiltinType::Complex
@ Complex
llvm::pdb::PDBFile::getPDBTpiStream
Expected< TpiStream & > getPDBTpiStream()
Definition: PDBFile.cpp:301
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:341
llvm::pdb::NativeTypeBuiltin
Definition: NativeTypeBuiltin.h:21
llvm::pdb::SymbolCache::findSymbolByTypeIndex
SymIndexId findSymbolByTypeIndex(codeview::TypeIndex TI) const
Definition: SymbolCache.cpp:158
std
Definition: BitVector.h:851
llvm::pdb::PDB_BuiltinType::Float
@ Float
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition: Error.h:155
CVTypeVisitor.h
llvm::pdb::NativeTypeEnum::getName
std::string getName() const override
Definition: NativeTypeEnum.cpp:305
llvm::pdb::Int16
@ Int16
Definition: PDBTypes.h:398
visitKnownMember
static Error visitKnownMember(CVMemberRecord &Record, TypeVisitorCallbacks &Callbacks)
Definition: CVTypeVisitor.cpp:34
llvm::pdb::NativeRawSymbol::dump
void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields, PdbSymbolIdField RecurseIdFields) const override
Definition: NativeRawSymbol.cpp:21
llvm::pdb::NativeSession
Definition: NativeSession.h:32
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:70
llvm::codeview::ClassOptions::HasConversionOperator
@ HasConversionOperator
NativeTypeBuiltin.h
llvm::Record::getName
StringRef getName() const
Definition: Record.h:1576
PDBFile.h
llvm::pdb::PDBSymbolTypeBuiltin
Definition: PDBSymbolTypeBuiltin.h:19
SymbolCache.h
llvm::pdb::TpiStream
Definition: TpiStream.h:34
llvm::pdb::NativeTypeEnum::hasNestedTypes
bool hasNestedTypes() const override
Definition: NativeTypeEnum.cpp:271
llvm::codeview::TypeIndex
A 32-bit type reference.
Definition: TypeIndex.h:96
llvm::pdb::SymbolCache::getNativeSymbolById
NativeRawSymbol & getNativeSymbolById(SymIndexId SymbolId) const
Definition: SymbolCache.cpp:263
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:279
llvm::codeview::LazyRandomTypeCollection::getType
CVType getType(TypeIndex Index) override
Definition: LazyRandomTypeCollection.cpp:91
llvm::AMDGPU::VGPRIndexMode::Id
Id
Definition: SIDefines.h:238
llvm::pdb::UInt64
@ UInt64
Definition: PDBTypes.h:406
llvm::pdb::TpiStream::typeCollection
codeview::LazyRandomTypeCollection & typeCollection()
Definition: TpiStream.h:59
llvm::codeview::ClassOptions::Nested
@ Nested
llvm::pdb::NativeTypeEnum::getUnderlyingBuiltinType
const NativeTypeBuiltin & getUnderlyingBuiltinType() const
Definition: NativeTypeEnum.cpp:376
llvm::pdb::NativeRawSymbol
Definition: NativeRawSymbol.h:21
NativeSession.h