[llvm-commits] PATCH: refactoring MCInstFragment and MCDataFragment

Jim Grosbach grosbach at apple.com
Fri Dec 7 14:51:51 PST 2012


On Dec 7, 2012, at 2:09 PM, Eli Bendersky <eliben at google.com> wrote:

>>> Most users of SmallString probably just use StringRef or something like that for access. I agree that SmallVector is more appropriate for this code anyway, so a follow-up sounds great.
>>> 
> 
> Since the follow-up turned out to be pretty straightforward, I just
> went ahead and committed it in 169644. So MCInstFragment is back to
> 240 bytes and the interface is cleaner (no explicit size).

Great!

> Coming to
> think of it, all the other fragments could probably benefit from a
> SmallString --> SmallVector conversion as well.
> 
> Let me know if you see any problem with this.

Seems fine to me.

-Jim



More information about the llvm-commits mailing list