[PATCH] D39111: Extensible LLVM RTTI
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 20 10:23:54 PDT 2017
dblaikie added a comment.
Interesting idea - yeah, curious to hear how others feel about the tradeoff (non-closed, virtual call).
The virtual call could be removed, perhaps, by having the base class hold a non-static member void* and derived classes (possibly through CRTP - which could be used in the existing design too, maybe? to reduce boilerplate) could pass the address of their ID through to the base ctor to initialize that member.
Repository:
rL LLVM
https://reviews.llvm.org/D39111
More information about the llvm-commits
mailing list