[cfe-commits] r93051 - /cfe/trunk/lib/Frontend/InitPreprocessor.cpp

Chris Lattner clattner at apple.com
Sat Jan 9 13:10:55 PST 2010


On Jan 9, 2010, at 8:17 AM, Benjamin Kramer wrote:

> Author: d0k
> Date: Sat Jan  9 10:17:37 2010
> New Revision: 93051
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=93051&view=rev
> Log:
> Rework InitPreprocessor to use a MacroBuilder class instead of pushing around
> std::vectors.
> 
> - MacroBuilder wraps a raw_ostream so it can easily write to any buffer
>  supported by raw_ostream.
> - MacroBuilder's method take Twines for easy string concatenation (this was done
>  with sprintf and temporary buffers before).
> - Targets still use std::vector as they don't have access to the builder.

Very nice Benjamin!

-Chris



More information about the cfe-commits mailing list