Initial experimentation with adding boxed "annotations" to HTMLized source.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48540 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 333ac60..b2852e2 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -60,6 +60,7 @@
enum ProgActions {
RewriteTest, // Rewriter testing stuff.
+ HTMLTest, // HTML displayer testing stuff.
EmitLLVM, // Emit a .ll file.
EmitBC, // Emit a .bc file.
SerializeAST, // Emit a .ast file.
@@ -135,6 +136,8 @@
"Build ASTs and emit .ast file"),
clEnumValN(RewriteTest, "rewrite-test",
"Playground for the code rewriter"),
+ clEnumValN(HTMLTest, "html-test",
+ "Playground for the HTML displayer"),
clEnumValEnd));
@@ -1002,6 +1005,9 @@
case EmitHTML:
return CreateHTMLPrinter();
+ case HTMLTest:
+ return CreateHTMLTest();
+
case ParseCFGDump:
case ParseCFGView:
return CreateCFGDumper(ProgAction == ParseCFGView,