Minor polishing of VTableBuilder

Peter Collingbourne peter at pcc.me.uk
Sat May 4 13:50:44 PDT 2013


On Fri, Apr 26, 2013 at 09:13:59PM +0400, Timur Iskhodzhanov wrote:
> Hi Peter, Anders,
> 
> I was reading the source of Clang VTableBuilder sources to get
> familiar with the code before writing a vftable generator for
> Microsoft ABI.
> 
> I've decided to improve a couple of comments.
> After improving one of the comments, fixing one of the FIXMEs in the
> code became obvious, so I went ahead and just did it.
> Please see the attached patch!

The part of your patch that fixes the FIXME LGTM.

> I also have a couple of questions, see the TODOs in the patch.
> The most important is VTableBuilder::ComputeThisAdjustmentBaseOffset
> where it's a bit unclear what's going on. It would be nice if we could
> come up with a code which is easier to understand or at least a good
> comment there.

Sorry but I'm not familiar enough with the rest of the code to be
able to comment on your changes.  Anders?

Thanks,
-- 
Peter



More information about the cfe-commits mailing list