summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-12-04 16:24:46 +0000
committerSteve Naroff <snaroff@apple.com>2008-12-04 16:24:46 +0000
commit4588d0f060212a774eae083d858389dd8af4fa74 (patch)
tree20886c6e37eea76345eed6023cc0a2741fe22076 /clang/lib/AST
parent2c4efe68ea698878f4041e7d8a335c01d8db2bbd (diff)
downloadbcm5719-llvm-4588d0f060212a774eae083d858389dd8af4fa74.tar.gz
bcm5719-llvm-4588d0f060212a774eae083d858389dd8af4fa74.zip
Several things...
- Implement RewritePropertySetter(). While the routine is simple, there were some tricky changes to RewriteFunctionBodyOrGlobalInitializer(), the main rewriter loop. It also required some additional instance data to distinguish setters from getters, as well as some changes to RewritePropertyGetter(). - Implement FIXME: for pretty printing ObjCPropertyRefExpr's. - Changed ObjCPropertyRefExpr::getSourceRange() to point to the end of the property name (not the beginning). Also made a minor name change from "Loc"->"IdLoc" (to make it clear the Loc does not point to the "."). llvm-svn: 60540
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/StmtPrinter.cpp2
-rw-r--r--clang/lib/AST/StmtSerialization.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp
index 8cd79a8347d..2e54777b94f 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -499,7 +499,7 @@ void StmtPrinter::VisitObjCPropertyRefExpr(ObjCPropertyRefExpr *Node) {
PrintExpr(Node->getBase());
OS << ".";
}
- // FIXME: OS << Node->getDecl()->getName();
+ OS << Node->getProperty()->getNameAsCString();
}
void StmtPrinter::VisitObjCKVCRefExpr(ObjCKVCRefExpr *Node) {
diff --git a/clang/lib/AST/StmtSerialization.cpp b/clang/lib/AST/StmtSerialization.cpp
index 78a2cbcaa76..6ebaca1c8e5 100644
--- a/clang/lib/AST/StmtSerialization.cpp
+++ b/clang/lib/AST/StmtSerialization.cpp
@@ -1165,7 +1165,7 @@ ObjCIvarRefExpr* ObjCIvarRefExpr::CreateImpl(Deserializer& D, ASTContext& C) {
}
void ObjCPropertyRefExpr::EmitImpl(Serializer& S) const {
- S.Emit(Loc);
+ S.Emit(IdLoc);
S.Emit(getType());
S.EmitPtr(getProperty());
}
OpenPOWER on IntegriCloud