[cfe-commits] r55299 - in /cfe/trunk/lib: AST/Expr.cpp CodeGen/CGExprConstant.cpp

Eli Friedman eli.friedman at gmail.com
Mon Aug 25 12:03:07 PDT 2008


On Mon, Aug 25, 2008 at 10:10 AM, Chris Lattner <clattner at apple.com> wrote:
> I think it would be better to have AST/ExprConstant.cpp handle
> constant folding of builtins, and have CGExprConstant.cpp just call
> into the constant folding routines when it gets a scalar or complex
> element to initialize.

That was my original intention... although I never got around to
completing the implementation of Expr::tryEvaluate far enough for that
to work.

-Eli



More information about the cfe-commits mailing list