Added most of the boilerplate to the driver needed to run the graph-reachability
constant propagation analysis.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45747 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/ASTConsumers.cpp b/Driver/ASTConsumers.cpp
index 1dbfb04..bf0fc10 100644
--- a/Driver/ASTConsumers.cpp
+++ b/Driver/ASTConsumers.cpp
@@ -552,6 +552,25 @@
}
//===----------------------------------------------------------------------===//
+// GRConstProp - Perform intra-procedural, path-sensitive constant propagation.
+
+namespace {
+ class GRConstPropVisitor : public CFGVisitor {
+ public:
+ virtual void Initialize(ASTContext &Context) {}
+
+ virtual void VisitCFG(CFG& C) {
+ // FIXME: Implement.
+ assert (false && "Not yet implemented.");
+ }
+ };
+} // end anonymous namespace
+
+ASTConsumer *clang::CreateGRConstProp() {
+ return new GRConstPropVisitor();
+}
+
+//===----------------------------------------------------------------------===//
// LLVM Emitter
#include "clang/Basic/Diagnostic.h"