summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/RewriteBlocks.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/RewriteBlocks.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/RewriteBlocks.cpp')
-rw-r--r--clang/lib/Frontend/RewriteBlocks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/RewriteBlocks.cpp b/clang/lib/Frontend/RewriteBlocks.cpp
index 6d0f10def20..9d73d90554c 100644
--- a/clang/lib/Frontend/RewriteBlocks.cpp
+++ b/clang/lib/Frontend/RewriteBlocks.cpp
@@ -724,7 +724,7 @@ std::string RewriteBlocks::SynthesizeBlockCall(CallExpr *Exp) {
BlockCall += "((struct __block_impl *)";
std::string closureExprBufStr;
llvm::raw_string_ostream closureExprBuf(closureExprBufStr);
- Exp->getCallee()->printPretty(closureExprBuf);
+ Exp->getCallee()->printPretty(closureExprBuf, *Context);
BlockCall += closureExprBuf.str();
BlockCall += ")->FuncPtr)";
@@ -735,7 +735,7 @@ std::string RewriteBlocks::SynthesizeBlockCall(CallExpr *Exp) {
E = Exp->arg_end(); I != E; ++I) {
std::string syncExprBufS;
llvm::raw_string_ostream Buf(syncExprBufS);
- (*I)->printPretty(Buf);
+ (*I)->printPretty(Buf, *Context);
BlockCall += ", " + Buf.str();
}
return BlockCall;
OpenPOWER on IntegriCloud