summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprCXX.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-11-04 14:32:21 +0000
committerDouglas Gregor <dgregor@apple.com>2008-11-04 14:32:21 +0000
commit97a9c81b05ae342ec77743a44eedb9908e8a648f (patch)
tree4dafd4955a6c71fab04acad45c96d33f6ef97661 /clang/lib/AST/ExprCXX.cpp
parente4f5c9495f2087d73ef926d4d70d1c41311d4501 (diff)
downloadbcm5719-llvm-97a9c81b05ae342ec77743a44eedb9908e8a648f.tar.gz
bcm5719-llvm-97a9c81b05ae342ec77743a44eedb9908e8a648f.zip
Create a new expression class, CXXThisExpr, to handle the C++ 'this' primary expression. Remove CXXThis from PredefinedExpr
llvm-svn: 58695
Diffstat (limited to 'clang/lib/AST/ExprCXX.cpp')
-rw-r--r--clang/lib/AST/ExprCXX.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/ExprCXX.cpp b/clang/lib/AST/ExprCXX.cpp
index 82626d864ad..0eead3ca552 100644
--- a/clang/lib/AST/ExprCXX.cpp
+++ b/clang/lib/AST/ExprCXX.cpp
@@ -33,6 +33,10 @@ Stmt::child_iterator CXXBoolLiteralExpr::child_end() {
return child_iterator();
}
+// CXXThisExpr
+Stmt::child_iterator CXXThisExpr::child_begin() { return child_iterator(); }
+Stmt::child_iterator CXXThisExpr::child_end() { return child_iterator(); }
+
// CXXThrowExpr
Stmt::child_iterator CXXThrowExpr::child_begin() { return &Op; }
Stmt::child_iterator CXXThrowExpr::child_end() {
OpenPOWER on IntegriCloud