mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 21:48:10 +00:00
One of the remaining three steps for proof-of-concept virtual function lowering (the other two being: initializing vptrs to point to these tables, and using the vptr+table at call sites). Introduces a (placeholder?) mangling of vtables as ".$vtable" at the end of the mangling of the class name. Uses a scheme similar to clang's relative vtables - though those are relative to the vtable slot, and this is relative to the start of the vtable (seemed simpler? though I haven't looked at it in detail, perhaps in lowering call sites I'll find the relative-to-vtable-slot is nicer, easy enough to change).