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
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 26cbd48..e73fac9 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -64,7 +64,7 @@
ParseCFGDump, // Parse ASTS. Build CFGs. Print CFGs.
ParseCFGView, // Parse ASTS. Build CFGs. View CFGs.
AnalysisLiveVariables, // Print results of live-variable analysis.
- AnalysisGRConstProp, // Perform graph-reachability constant prop.
+ AnalysisGRConstants, // Perform graph-reachability constant prop.
WarnDeadStores, // Run DeadStores checker on parsed ASTs.
WarnDeadStoresCheck, // Check diagnostics for "DeadStores".
WarnUninitVals, // Run UnitializedVariables checker.
@@ -109,7 +109,7 @@
"Flag warnings of stores to dead variables."),
clEnumValN(WarnUninitVals, "warn-uninit-values",
"Flag warnings of uses of unitialized variables."),
- clEnumValN(AnalysisGRConstProp, "gr-const-prop",
+ clEnumValN(AnalysisGRConstants, "gr-const-prop",
"Perform path-sensitive constant propagation."),
clEnumValN(TestSerialization, "test-pickling",
"Run prototype serializtion code."),
@@ -947,8 +947,8 @@
case WarnUninitVals:
return CreateUnitValsChecker(Diag);
- case AnalysisGRConstProp:
- return CreateGRConstProp();
+ case AnalysisGRConstants:
+ return CreateGRConstants();
case TestSerialization:
return CreateSerializationTest(Diag, FileMgr, LangOpts);