summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/RewriteObjC.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-05-30 05:19:26 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-05-30 05:19:26 +0000
commit0905f14e62b6b63b41f379b66b7c512b8699c798 (patch)
tree1d743e3b69d4544f5d3c75a6d60b7e1243b4700a /clang/lib/Frontend/RewriteObjC.cpp
parentadbc2846667507bdb0b06707b04539aacf4bc6f5 (diff)
downloadbcm5719-llvm-0905f14e62b6b63b41f379b66b7c512b8699c798.tar.gz
bcm5719-llvm-0905f14e62b6b63b41f379b66b7c512b8699c798.zip
Pass an ASTContext into Stmt::printPretty.
llvm-svn: 72611
Diffstat (limited to 'clang/lib/Frontend/RewriteObjC.cpp')
-rw-r--r--clang/lib/Frontend/RewriteObjC.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Frontend/RewriteObjC.cpp b/clang/lib/Frontend/RewriteObjC.cpp
index 55f0b405a93..f382704014f 100644
--- a/clang/lib/Frontend/RewriteObjC.cpp
+++ b/clang/lib/Frontend/RewriteObjC.cpp
@@ -171,7 +171,7 @@ namespace {
// Get the new text.
std::string SStr;
llvm::raw_string_ostream S(SStr);
- New->printPretty(S);
+ New->printPretty(S, *Context);
const std::string &Str = S.str();
// If replacement succeeded or warning disabled return with no warning.
@@ -1514,7 +1514,7 @@ Stmt *RewriteObjC::RewriteObjCSynchronizedStmt(ObjCAtSynchronizedStmt *S) {
SourceLocation());
std::string syncExprBufS;
llvm::raw_string_ostream syncExprBuf(syncExprBufS);
- syncExpr->printPretty(syncExprBuf);
+ syncExpr->printPretty(syncExprBuf, *Context);
buf += syncExprBuf.str();
buf += ");\n";
buf += " if (_rethrow) objc_exception_throw(_rethrow);\n";
@@ -2143,7 +2143,7 @@ Stmt *RewriteObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) {
// The pretty printer for StringLiteral handles escape characters properly.
std::string prettyBufS;
llvm::raw_string_ostream prettyBuf(prettyBufS);
- Exp->getString()->printPretty(prettyBuf);
+ Exp->getString()->printPretty(prettyBuf, *Context);
Preamble += prettyBuf.str();
Preamble += ",";
// The minus 2 removes the begin/end double quotes.
@@ -4526,7 +4526,7 @@ Stmt *RewriteObjC::RewriteFunctionBodyOrGlobalInitializer(Stmt *S) {
// Get the new text.
std::string SStr;
llvm::raw_string_ostream Buf(SStr);
- Replacement->printPretty(Buf);
+ Replacement->printPretty(Buf, *Context);
const std::string &Str = Buf.str();
printf("CAST = %s\n", &Str[0]);
OpenPOWER on IntegriCloud