[cfe-commits] [PATCH] Refactoring of vtable and VTT builders
Peter Collingbourne
pcollingbourne at pathscale.com
Mon Jun 13 12:41:07 PDT 2011
Hi,
This patch refactors the vtable and VTT builders to provide a
backend-neutral interface to the builders in the AST library, which
CodeGen uses to build vtables and VTTs in LLVM. No functionality
change intended.
The main goal of this patch is to allow developers of backends
targeting non-LLVM intermediate representations to reuse the vtable
and VTT builders (full disclosure: PathScale is working on a WHIRL
backend for clang).
>From the point of view of the clang project itself, this patch enables
easier unit testing of the vtable and VTT builders (the unit tests
themselves are left for future work).
(I have doubts over whether AST is the right library for this code.
Perhaps a new library, say "Backend", should be created?)
OK to commit?
Thanks,
--
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtable-refactor.patch
Type: text/x-diff
Size: 289098 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110613/ef764b4f/attachment.patch>
More information about the cfe-commits
mailing list