Revision 3d4eaf3c9b13e32c4e4d7737f17805503cddcb0b authored by Yong He on 15 January 2018, 23:15:49 UTC, committed by Yong He on 15 January 2018, 23:18:25 UTC
This commit is a bunch of quick hacks to get transitive interfaces to work. The idea is for each concrete type we create one giant witness table that contains entries for all the transitively reachable interface requirements, and then create one copy of that witness table for each interface it implements. `DoLocalLookupImpl` now also looks up in inherited interface decles when looking up for a symbol in an interface decl. When visiting `InheritanceDecl` in `lower-to-ir`, create copies of the giant witness table for each transitively inherited interface, so that these witness tables can be found later when the IR is specialized. Re-enable the `copy all witness tables` hack in `specializeIRForEntryPoint` to ensure those transitive witness tables are copied over.
1 parent 8abae05
File | Mode | Size |
---|---|---|
main.cpp | -rw-r--r-- | 2.3 KB |
slangc.vcxproj | -rw-r--r-- | 8.5 KB |
slangc.vcxproj.filters | -rw-r--r-- | 935 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...