26 std::vector<codeview::TypeLeafKind> Kinds)
27 : Index(0), Session(PDBSession) {
28 std::optional<TypeIndex> TI = Types.getFirst();
30 CVType CVT = Types.getType(*TI);
35 Matches.push_back(*TI);
36 }
else if (K == TypeLeafKind::LF_MODIFIER) {
39 CVType UnmodifiedCVT = Types.getType(ModifiedTI);
44 Matches.push_back(*TI);
47 TI = Types.getNext(*TI);
52 std::vector<codeview::TypeIndex> Indices)
53 : Matches(
std::
move(Indices)), Index(0), Session(PDBSession) {}
56 return static_cast<uint32_t>(Matches.size());
60 if (
N < Matches.size()) {
Provides amortized O(1) random access to a CodeView type stream.
std::unique_ptr< PDBSymbol > getChildAtIndex(uint32_t Index) const override
NativeEnumTypes(NativeSession &Session, codeview::LazyRandomTypeCollection &TypeCollection, std::vector< codeview::TypeLeafKind > Kinds)
uint32_t getChildCount() const override
std::unique_ptr< PDBSymbol > getNext() override
SymbolCache & getSymbolCache()
std::unique_ptr< PDBSymbol > getSymbolById(SymIndexId SymbolId) const
SymIndexId findSymbolByTypeIndex(codeview::TypeIndex TI) const
bool isUdtForwardRef(CVType CVT)
Given an arbitrary codeview type, determine if it is an LF_STRUCTURE, LF_CLASS, LF_INTERFACE,...
TypeLeafKind
Duplicate copy of the above enum, but using the official CV names.
TypeIndex getModifiedType(const CVType &CVT)
Given a CVType which is assumed to be an LF_MODIFIER, return the TypeIndex of the type that the LF_MO...
This is an optimization pass for GlobalISel generic memory operations.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
bool is_contained(R &&Range, const E &Element)
Returns true if Element is found in Range.
Implement std::hash so that hash_code can be used in STL containers.