summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-04 00:14:36 +0000
committerChris Lattner <sabre@nondot.org>2007-08-04 00:14:36 +0000
commitc9a15cabdc628b770148bdf104c76c4d867b2f4b (patch)
tree17bfa023a6d360aa94341dcce4cbedec643ee0b6
parentb0c7585f2d66f82444bdbe31e1ef8607adab350c (diff)
downloadbcm5719-llvm-c9a15cabdc628b770148bdf104c76c4d867b2f4b.tar.gz
bcm5719-llvm-c9a15cabdc628b770148bdf104c76c4d867b2f4b.zip
fix constness issues.
llvm-svn: 40798
-rw-r--r--clang/include/clang/AST/Expr.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h
index e7d770a2247..df5f68da108 100644
--- a/clang/include/clang/AST/Expr.h
+++ b/clang/include/clang/AST/Expr.h
@@ -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);
}
OpenPOWER on IntegriCloud