Go to the documentation of this file.
28 std::vector<codeview::TypeLeafKind> Kinds)
29 : Index(0), Session(PDBSession) {
37 Matches.push_back(*TI);
38 }
else if (K == TypeLeafKind::LF_MODIFIER) {
46 Matches.push_back(*TI);
54 std::vector<codeview::TypeIndex> Indices)
55 : Matches(
std::
move(Indices)), Index(0), Session(PDBSession) {}
58 return static_cast<uint32_t>(Matches.size());
62 if (
N < Matches.size()) {
This is an optimization pass for GlobalISel generic memory operations.
bool isUdtForwardRef(CVType CVT)
Given an arbitrary codeview type, determine if it is an LF_STRUCTURE, LF_CLASS, LF_INTERFACE,...
NativeEnumTypes(NativeSession &Session, codeview::LazyRandomTypeCollection &TypeCollection, std::vector< codeview::TypeLeafKind > Kinds)
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...
std::unique_ptr< PDBSymbol > getNext() override
Provides amortized O(1) random access to a CodeView type stream.
std::unique_ptr< PDBSymbol > getSymbolById(SymIndexId SymbolId) const
uint32_t getChildCount() const override
bool is_contained(R &&Range, const E &Element)
Wrapper function around std::find to detect if an element exists in a container.
SymbolCache & getSymbolCache()
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Optional< TypeIndex > getNext(TypeIndex Prev) override
SymIndexId findSymbolByTypeIndex(codeview::TypeIndex TI) const
TypeLeafKind
Duplicate copy of the above enum, but using the official CV names.
Optional< TypeIndex > getFirst() override
CVType getType(TypeIndex Index) override
std::unique_ptr< PDBSymbol > getChildAtIndex(uint32_t Index) const override