aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-11-24 06:33:02 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-11-24 06:33:02 +0000
commit5281b8ed0e395603e5ff15ecc01ee0d0dff2e0fd (patch)
treeeb72b30129a0ccfa068830f49e75c79ae75df9bc
parent7eb0a9eb0cde8444b97f9c5b713d9be7a6f1e607 (diff)
print asLValue attribute of CFGStmt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120086 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/CFG.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp
index b371f6a519..57e67e4268 100644
--- a/lib/Analysis/CFG.cpp
+++ b/lib/Analysis/CFG.cpp
@@ -3065,6 +3065,9 @@ static void print_elem(llvm::raw_ostream &OS, StmtPrinterHelper* Helper,
OS << " (BindTemporary)";
}
+ if (CS.asLValue())
+ OS << " (asLValue)";
+
// Expressions need a newline.
if (isa<Expr>(S))
OS << '\n';