LiveVariables:
- Finished 99% of analysis logic. Probably a few bugs.
- Added querying functions to query liveness.
- Added better pretty printing of liveness.
- Added better bookkeeping of per-variable liveness information.
- Added LiveVariablesAuditor interface, which allows "lazy" querying
of intra-basic block liveness information.
Driver:
- Minor cleanups involved in dumping liveness information.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41753 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/ASTStreamers.cpp b/Driver/ASTStreamers.cpp
index a1494e4..b5ea293 100644
--- a/Driver/ASTStreamers.cpp
+++ b/Driver/ASTStreamers.cpp
@@ -198,7 +198,7 @@
if (CFG* C = CFG::buildCFG(FD->getBody())) {
LiveVariables L;
L.runOnCFG(*C);
- L.DumpBlockLiveness();
+ L.dumpBlockLiveness(PP.getSourceManager());
}
else
fprintf(stderr," Error processing CFG.\n");
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index dde1c57..ed540ae 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -92,9 +92,9 @@
clEnumValN(ParseCFGView, "view-cfg",
"Run parser, then build and view CFGs with Graphviz."),
clEnumValN(AnalysisLiveVariables, "dump-live-variables",
- "Run parser and print results of live variable analysis."),
+ "Print results of live variable analysis."),
clEnumValN(EmitLLVM, "emit-llvm",
- "Build ASTs then convert to LLVM, emit .ll file"),
+ "Build ASTs then convert to LLVM, emit .ll file"),
clEnumValEnd));
//===----------------------------------------------------------------------===//