svn commit: r199146 -
projects/clangbsd/contrib/llvm/tools/clang/lib/Driver
Roman Divacky
rdivacky at FreeBSD.org
Tue Nov 10 17:37:48 UTC 2009
Author: rdivacky
Date: Tue Nov 10 17:37:47 2009
New Revision: 199146
URL: http://svn.freebsd.org/changeset/base/199146
Log:
Enter C++ mode in the driver when called as c++ or clang++.
Modified:
projects/clangbsd/contrib/llvm/tools/clang/lib/Driver/Driver.cpp
Modified: projects/clangbsd/contrib/llvm/tools/clang/lib/Driver/Driver.cpp
==============================================================================
--- projects/clangbsd/contrib/llvm/tools/clang/lib/Driver/Driver.cpp Tue Nov 10 17:37:01 2009 (r199145)
+++ projects/clangbsd/contrib/llvm/tools/clang/lib/Driver/Driver.cpp Tue Nov 10 17:37:47 2009 (r199146)
@@ -126,6 +126,10 @@ Compilation *Driver::BuildCompilation(in
// FIXME: This stuff needs to go into the Compilation, not the driver.
bool CCCPrintOptions = false, CCCPrintActions = false;
+ if (!strcmp(argv[0], "c++") || !strcmp(argv[0], "clang++")) {
+ CCCIsCXX = true;
+ }
+
const char **Start = argv + 1, **End = argv + argc;
const char *HostTriple = DefaultHostTriple.c_str();
More information about the svn-src-projects
mailing list