aboutsummaryrefslogtreecommitdiff
path: root/Analysis/GRConstants.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-01-16 18:18:48 +0000
committerTed Kremenek <kremenek@apple.com>2008-01-16 18:18:48 +0000
commitee98546b0d5f3439c4a590b0d7d1545af794a0ec (patch)
treef3ee826bdd40bf45401e8f1ea893f9ff3f7d45de /Analysis/GRConstants.cpp
parent3c6c672ff8665bf0f00d6b2770453ccea71740a4 (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.cpp12
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();
+}
+}