fix constness issues.

llvm-svn: 40798
This commit is contained in:
Chris Lattner 2007-08-04 00:14:36 +00:00
parent b0c7585f2d
commit c9a15cabdc
1 changed files with 8 additions and 4 deletions

View File

@ -791,10 +791,14 @@ public:
: Expr(ChooseExprClass, t),
Cond(cond), LHS(lhs), RHS(rhs), BuiltinLoc(BLoc), RParenLoc(RP) {}
Expr *getCond() const { return Cond; }
Expr *getLHS() const { return LHS; }
Expr *getRHS() const { return RHS; }
Expr *getCond() { return Cond; }
Expr *getLHS() { return LHS; }
Expr *getRHS() { return RHS; }
const Expr *getCond() const { return Cond; }
const Expr *getLHS() const { return LHS; }
const Expr *getRHS() const { return RHS; }
virtual SourceRange getSourceRange() const {
return SourceRange(BuiltinLoc, RParenLoc);
}