From owner-svn-src-projects@FreeBSD.ORG Tue Nov 10 17:37:48 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C830106566B; Tue, 10 Nov 2009 17:37:48 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1B5898FC0A; Tue, 10 Nov 2009 17:37:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nAAHbmAT066808; Tue, 10 Nov 2009 17:37:48 GMT (envelope-from rdivacky@svn.freebsd.org) Received: (from rdivacky@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nAAHbl1G066806; Tue, 10 Nov 2009 17:37:47 GMT (envelope-from rdivacky@svn.freebsd.org) Message-Id: <200911101737.nAAHbl1G066806@svn.freebsd.org> From: Roman Divacky Date: Tue, 10 Nov 2009 17:37:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r199146 - projects/clangbsd/contrib/llvm/tools/clang/lib/Driver X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Nov 2009 17:37:48 -0000 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();