summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/AnalysisConsumer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-30 01:26:17 +0000
committerChris Lattner <sabre@nondot.org>2009-06-30 01:26:17 +0000
commitc61089a6c231ecf07631d767d2d1db0ec0816262 (patch)
tree28387b2d56261ad228979fd386635c9d12f4eae1 /clang/lib/Frontend/AnalysisConsumer.cpp
parente8eca73cddbf6a6b4adb07b7eef403226b8a6798 (diff)
downloadbcm5719-llvm-c61089a6c231ecf07631d767d2d1db0ec0816262.tar.gz
bcm5719-llvm-c61089a6c231ecf07631d767d2d1db0ec0816262.zip
Key decisions about 'bool' vs '_Bool' to be based on a new flag in langoptions.
This is simple enough, but then I thought it would be nice to make PrintingPolicy get a LangOptions so that various things can key off "bool" and "C++" independently. This spiraled out of control. There are many fixme's, but I think things are slightly better than they were before. One thing that can be improved: CFG should probably have an ASTContext pointer in it, which would simplify its clients. llvm-svn: 74493
Diffstat (limited to 'clang/lib/Frontend/AnalysisConsumer.cpp')
-rw-r--r--clang/lib/Frontend/AnalysisConsumer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Frontend/AnalysisConsumer.cpp b/clang/lib/Frontend/AnalysisConsumer.cpp
index d8fa141d8cb..2363ead9c19 100644
--- a/clang/lib/Frontend/AnalysisConsumer.cpp
+++ b/clang/lib/Frontend/AnalysisConsumer.cpp
@@ -479,14 +479,16 @@ static void ActionDisplayLiveVariables(AnalysisManager& mgr) {
static void ActionCFGDump(AnalysisManager& mgr) {
if (CFG* c = mgr.getCFG()) {
mgr.DisplayFunction();
- c->dump();
+ LangOptions LO; // FIXME!
+ c->dump(LO);
}
}
static void ActionCFGView(AnalysisManager& mgr) {
if (CFG* c = mgr.getCFG()) {
mgr.DisplayFunction();
- c->viewCFG();
+ LangOptions LO; // FIXME!
+ c->viewCFG(LO);
}
}
OpenPOWER on IntegriCloud