Skip to content

Add vtable infoΒ #103

@zhuyutian57

Description

@zhuyutian57

Though TraitDef and ImplDef are provided, it seems there is no way to get vtable information.

In MIR, a virtual function call can be invoked by InstanceKind::Virtual { idx }, where idx is the index in a vtable_entries. Is there any way to retrieve infomation such as vtable_entries in MIR?

Moreover, we can get the trait items from TraitDef.associated_items(). Is there any relationship between InstanceKind::Virtual { idx } and the associated_item().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions