Add -o support for -emit-html, make it not produce a file on an error.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49777 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 7a2996a..09140c9 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -918,8 +918,10 @@
// Fedora 8
AddPath("/usr/include/c++/4.1.2", System, true, false, false, Headers);
- AddPath("/usr/include/c++/4.1.2/i386-redhat-linux", System, true, false, false, Headers);
- AddPath("/usr/include/c++/4.1.2/backward", System, true, false, false, Headers);
+ AddPath("/usr/include/c++/4.1.2/i386-redhat-linux", System, true, false,
+ false, Headers);
+ AddPath("/usr/include/c++/4.1.2/backward", System, true, false, false,
+ Headers);
}
AddPath("/usr/local/include", System, false, false, false, Headers);
@@ -1046,7 +1048,7 @@
return CreateASTViewer();
case EmitHTML:
- return CreateHTMLPrinter();
+ return CreateHTMLPrinter(OutputFile, Diag);
case ParseCFGDump:
case ParseCFGView: