summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-02 00:03:09 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-02 00:03:09 +0000
commitf4381fddf152a63e1ac97185293c47ec0ac2f1a6 (patch)
treed801ed4df75b9c65dfa1899a94955e5a211d68a5 /lib/CodeGen/CodeGenModule.cpp
parent91d1a14be8eabe235fcf27b070bc9c568d5e1e63 (diff)
downloadclang-f4381fddf152a63e1ac97185293c47ec0ac2f1a6.tar.gz
clang-f4381fddf152a63e1ac97185293c47ec0ac2f1a6.tar.bz2
clang-f4381fddf152a63e1ac97185293c47ec0ac2f1a6.tar.xz
Added AnalysisConsumer, a meta-level ASTConsumer class to drive various
analyses. This potentially is the primordial origins of a Clang-equivalent "PassManager". The new AnalysisConsumer interface allows multiple analyses to be run from a single invocation of Clang. Migrated the logic of "-warn-dead-stores" and "-warn-uninit-values" to use the new AnalysisConsumer interface. The new interface results in a significant code reduction to incorporate an analysis into the Driver. Updated a test case to (correctly) acknowledge that it contains a dead store (this check wasn't being performed because it was previously masked by -warn-uninit-values). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions