Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21926585ybl; Mon, 6 Jan 2020 14:16:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwAD8RNTmxikxvGFMUOwxY8LPr964+MSowfYGsceb4ms+x/hPEJnKf9Jc0bQFKuhHyJE75j X-Received: by 2002:a05:6808:b1c:: with SMTP id s28mr6537944oij.2.1578348972792; Mon, 06 Jan 2020 14:16:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578348972; cv=none; d=google.com; s=arc-20160816; b=s/jsl3KnWKWTQx7iAyrzltPX38wDzUnC2mtN4kbSHZdyOU02Mk5A/lmCPuXZmtuXn0 ldyar9Q81uCr3Sl2fAowNMltMNhM2Jyjx02gKGEPSWtAUmAHceC5MvVaejLi0vrzAEVS cjHQ7lFICkQH1pm4vAq2oWqFT79d4U6b1D1g6MINYcmbF1YCh1cCbpOXBUcKQG4/S3Om PDZFEdfdrNt9Fn8PBhaUK1aZpNbKQfNEMI1BMlRoTkBlS0R1Mpxl5jNAQeUmCCqywL+/ 8m5Gfi2IqJfWlzOLaT7M0EkiDcYpEpmEVZwlj6FVgH6+TqqoZoKgPpME9OI0h8h/gIlg Djzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=VtL/MNOJtUrGbjT5VpkANRdtrGSGAxkiN6V9TVgQwzU=; b=ZJArhgJowLDXrsCJVZmswWHwMVxPjztkXF8HbQJdXtJfvhM8wF/EIOaSAXQXPtHQ0A md+c93T9bPp1pXzMHhQ7akBuzzwZkZ7VHcvdw4HW4O7goElqEGMVJMGIG1Wt8V6/GlC0 bNU9EDi0UPVjaviZOvTucVX4dlQl7LmL/5jcr+pxBcfWQ/LpJc/O4g/NtdjMqypzlgSv lxrLX3Tc5rRO+BQgNmCBB/o1xJrNF08DY20TQonHruUBZ9jGbPm0N/c+WZId2MAfIbvD q/siltm+g7kuPuc4sF59P+jqBQ0cYpK4e/7ANY0cxK5Xo17kc+hsAVVlsjNY9uGMJsPr XBnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JJJMbzW9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t82si32704733oif.45.2020.01.06.14.16.00; Mon, 06 Jan 2020 14:16:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JJJMbzW9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727027AbgAFWPT (ORCPT + 99 others); Mon, 6 Jan 2020 17:15:19 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:38916 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726695AbgAFWPT (ORCPT ); Mon, 6 Jan 2020 17:15:19 -0500 Received: by mail-qk1-f194.google.com with SMTP id c16so40931262qko.6 for ; Mon, 06 Jan 2020 14:15:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=VtL/MNOJtUrGbjT5VpkANRdtrGSGAxkiN6V9TVgQwzU=; b=JJJMbzW9YBmeuNv/3k9/eErSieAjRSfdvRjJEcElYQYLDa7ojirc3dsMJxLFep0Aet NP3tByCfMxH8sP4smFgb0viCTPe/X7ZfSaI93oBz4GO7jOLj/RL+XE5WVWQ7Li0QxSAJ JspE96EtZCd6rvAP3pyQLXHoGxEAXljWqU+KAWtWuOjrJNUji4wsSzMGyde0ixERME9M 0mdFjCr8ICmi7B12ggLFgtqQ9FjgNZYb5SxvWENxpMrq/kXSv8YtTS1i6zX1E+Zwdh6L iFttQaxnnvr+OkAhF4ypkk3yVE49Ujl8XQJv9z8a2ubCjMukw5Uqdd6XlK+qx2ixdyVV pyEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=VtL/MNOJtUrGbjT5VpkANRdtrGSGAxkiN6V9TVgQwzU=; b=klIqWgaIfLApxsEGQ9ubP0WjWjsOW4GCUzxsvl4V+PYSPK/6yIWNjPFmgTVAXk1noT phbvEzj0/26oYRRZZ3NPNALmFDLXIlocuC0O85yHLUSLco8pdD4shDZAAnERduuAnKvT dNhPPkC+ztMfO5MoVgZgpP8p8yz/6GOa7E3XfdTyH2y3XTORLZ6l1nwPbH88Ee7ukvzB QkbSKNWSq0rlb8LXfr/IlRDvKtFAY69qIFtBBni8uxNmLcBAsiQ8Q2t7UpqvyR+QLxw1 ZWRCv98halY3y5A9BfjU1r4rttG/jidtnOz3fYKkRbmNGe9kDcXyN4qAFSr2HLLq6pUn GpJQ== X-Gm-Message-State: APjAAAWWuodXULDn2fpzy/5kPhg9TZQBL99HZWk2dNZGU05hJBSn/5wz RSzbmfCq/LqP7rktAs0IHsY= X-Received: by 2002:ae9:f819:: with SMTP id x25mr85333165qkh.192.1578348918372; Mon, 06 Jan 2020 14:15:18 -0800 (PST) Received: from quaco.ghostprotocols.net ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id a24sm21452630qkl.82.2020.01.06.14.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 14:15:17 -0800 (PST) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id B26B540DFD; Mon, 6 Jan 2020 19:15:15 -0300 (-03) Date: Mon, 6 Jan 2020 19:15:15 -0300 To: "Maciej S. Szmigiero" Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Dennis Schridde , Denis Pronin , Naohiro Aota , clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf clang: Fix build with Clang 9 Message-ID: <20200106221515.GE11285@kernel.org> References: <20191228171314.946469-2-mail@maciej.szmigiero.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191228171314.946469-2-mail@maciej.szmigiero.name> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sat, Dec 28, 2019 at 06:13:14PM +0100, Maciej S. Szmigiero escreveu: > LLVM D59377 (included in Clang 9) refactored Clang VFS construction a bit, > which broke perf clang build. > Let's fix it. > > Signed-off-by: Maciej S. Szmigiero > Reviewed-by: Dennis Schridde Thanks, applied. - Arnaldo > --- > tools/perf/util/c++/clang.cpp | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/perf/util/c++/clang.cpp b/tools/perf/util/c++/clang.cpp > index fc361c3f8570..c8885dfa3667 100644 > --- a/tools/perf/util/c++/clang.cpp > +++ b/tools/perf/util/c++/clang.cpp > @@ -71,7 +71,11 @@ getModuleFromSource(llvm::opt::ArgStringList CFlags, > CompilerInstance Clang; > Clang.createDiagnostics(); > > +#if CLANG_VERSION_MAJOR < 9 > Clang.setVirtualFileSystem(&*VFS); > +#else > + Clang.createFileManager(&*VFS); > +#endif > > #if CLANG_VERSION_MAJOR < 4 > IntrusiveRefCntPtr CI = -- - Arnaldo