diff options
Diffstat (limited to 'lib/AST/StmtViz.cpp')
-rw-r--r-- | lib/AST/StmtViz.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/AST/StmtViz.cpp b/lib/AST/StmtViz.cpp index a8f7c76ebe..61fd750ccc 100644 --- a/lib/AST/StmtViz.cpp +++ b/lib/AST/StmtViz.cpp @@ -32,26 +32,26 @@ template<> struct DOTGraphTraits<const Stmt*> : public DefaultDOTGraphTraits { static std::string getNodeLabel(const Stmt* Node, const Stmt* Graph, bool ShortNames) { - + #ifndef NDEBUG std::string OutSStr; llvm::raw_string_ostream Out(OutSStr); - + if (Node) Out << Node->getStmtClassName(); else Out << "<NULL>"; - - std::string OutStr = Out.str(); + + std::string OutStr = Out.str(); if (OutStr[0] == '\n') OutStr.erase(OutStr.begin()); - + // Process string output to make it nicer... for (unsigned i = 0; i != OutStr.length(); ++i) if (OutStr[i] == '\n') { // Left justify OutStr[i] = '\\'; OutStr.insert(OutStr.begin()+i+1, 'l'); } - + return OutStr; #else return ""; |