diff options
author | Steve Naroff <snaroff@apple.com> | 2008-05-30 00:40:33 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-05-30 00:40:33 +0000 |
commit | ec944030181144c49c6539a985f09e8bf137cb1d (patch) | |
tree | 710495562768cc1e61c985bdf1c972609e0597bf /clang/lib/AST/StmtPrinter.cpp | |
parent | be8f77859b4c4152ff766e5ddca942d594b3a9d2 (diff) | |
download | bcm5719-llvm-ec944030181144c49c6539a985f09e8bf137cb1d.tar.gz bcm5719-llvm-ec944030181144c49c6539a985f09e8bf137cb1d.zip |
Add basic support for properties references (a missing feature).
While it is far from complete, it does fix the following <rdar://problem/5967199> clang on xcode: error: member reference is not to a structure or union
llvm-svn: 51719
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r-- | clang/lib/AST/StmtPrinter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp index b55869b0826..d52f48ed210 100644 --- a/clang/lib/AST/StmtPrinter.cpp +++ b/clang/lib/AST/StmtPrinter.cpp @@ -484,6 +484,14 @@ void StmtPrinter::VisitObjCIvarRefExpr(ObjCIvarRefExpr *Node) { OS << Node->getDecl()->getName(); } +void StmtPrinter::VisitObjCPropertyRefExpr(ObjCPropertyRefExpr *Node) { + if (Node->getBase()) { + PrintExpr(Node->getBase()); + OS << "."; + } + // FIXME: OS << Node->getDecl()->getName(); +} + void StmtPrinter::VisitPreDefinedExpr(PreDefinedExpr *Node) { switch (Node->getIdentType()) { default: |