[llvm-dev] conversion of const Stmt to stringref

John Tan via llvm-dev llvm-dev at lists.llvm.org
Thu Nov 17 20:23:13 PST 2016


const WhileStmt *WS = Result.Nodes.getNodeAs<clang::WhileStmt>("whileStmt");

Stmt *s = WS->getBody(); <-- i am assuming this is can get the body of while statment


how do i print out to see what the variable s is holding ?


i need to print out using rewriter functionality, but there is no function for me to convert it to stringref or print a stmt.


Much help needed please.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161118/a1e8d2e8/attachment.html>


More information about the llvm-dev mailing list