diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-28 23:59:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-28 23:59:40 +0000 |
commit | d9becd1846e2c72bf6ad283faa1b048f33dd3afe (patch) | |
tree | b36a12fe39d2edd3c0efa3d55536de8d9bd2f3fe /lib/AST/ExprConstant.cpp | |
parent | e8ec699167a7c3a2872feefd03e0ea2fabb980e0 (diff) |
Implement clang support for indirect branch and address of label
using the new LLVM support for this. This is temporarily hiding
behind horrible and ugly #ifdefs until the time when the optimizer
is stable (hopefully a week or so). Until then, lets make it "opt in" :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
-rw-r--r-- | lib/AST/ExprConstant.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index a4ca2c4db6..ed55df3a62 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -58,7 +58,12 @@ struct EvalInfo { static bool EvaluateLValue(const Expr *E, APValue &Result, EvalInfo &Info); static bool EvaluatePointer(const Expr *E, APValue &Result, EvalInfo &Info); static bool EvaluateInteger(const Expr *E, APSInt &Result, EvalInfo &Info); +#ifndef USEINDIRECTBRANCH static bool EvaluateIntegerOrLValue(const Expr *E, APValue &Result, EvalInfo &Info); +#else +static bool EvaluateIntegerOrLValue(const Expr *E, APValue &Result, + EvalInfo &Info); +#endif static bool EvaluateFloat(const Expr *E, APFloat &Result, EvalInfo &Info); static bool EvaluateComplex(const Expr *E, APValue &Result, EvalInfo &Info); |