diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-01-16 18:18:48 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-01-16 18:18:48 +0000 |
commit | ee98546b0d5f3439c4a590b0d7d1545af794a0ec (patch) | |
tree | f3ee826bdd40bf45401e8f1ea893f9ff3f7d45de /Analysis/GRConstants.cpp | |
parent | 3c6c672ff8665bf0f00d6b2770453ccea71740a4 (diff) |
Hooked up the GRConstants analysis to the driver.
Fixed some compilation errors with GREngine that showed up during
template instantiation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Analysis/GRConstants.cpp')
-rw-r--r-- | Analysis/GRConstants.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Analysis/GRConstants.cpp b/Analysis/GRConstants.cpp index 9ec0683169..56c4504209 100644 --- a/Analysis/GRConstants.cpp +++ b/Analysis/GRConstants.cpp @@ -288,4 +288,14 @@ void GRConstants::VisitBinAdd(BinaryOperator* B) { void GRConstants::VisitBinSub(BinaryOperator* B) { AddBinding(B, GetBinding(B->getLHS()) - GetBinding(B->getRHS())); } -
\ No newline at end of file + +//===----------------------------------------------------------------------===// +// Driver. +//===----------------------------------------------------------------------===// + +namespace clang { +void RunGRConstants(CFG& cfg) { + GREngine<GRConstants> Engine(cfg); + Engine.ExecuteWorkList(); +} +} |