summaryrefslogtreecommitdiffstats
path: root/clang/Driver/clang.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-16 05:21:09 +0000
committerChris Lattner <sabre@nondot.org>2008-04-16 05:21:09 +0000
commitdffe0f7db5fc6f7556c3513fc99f24d414c1b0f5 (patch)
tree170ea68e00c02fe2204cea77b83aba409b5053de /clang/Driver/clang.cpp
parent088d12e7410c56a049ececfeb5c298c7444a61f8 (diff)
downloadbcm5719-llvm-dffe0f7db5fc6f7556c3513fc99f24d414c1b0f5.tar.gz
bcm5719-llvm-dffe0f7db5fc6f7556c3513fc99f24d414c1b0f5.zip
Add -o support for -emit-html, make it not produce a file on an error.
llvm-svn: 49777
Diffstat (limited to 'clang/Driver/clang.cpp')
-rw-r--r--clang/Driver/clang.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index 7a2996a3098..09140c942e0 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/Driver/clang.cpp
@@ -918,8 +918,10 @@ static void InitializeIncludePaths(const char *Argv0, HeaderSearch &Headers,
// 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 @@ static ASTConsumer* CreateASTConsumer(const std::string& InFile,
return CreateASTViewer();
case EmitHTML:
- return CreateHTMLPrinter();
+ return CreateHTMLPrinter(OutputFile, Diag);
case ParseCFGDump:
case ParseCFGView:
OpenPOWER on IntegriCloud