John Tan via llvm-dev
2016-Nov-18 04:23 UTC
[llvm-dev] conversion of const Stmt to stringref
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>