Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2324861ybl; Mon, 20 Jan 2020 00:28:41 -0800 (PST) X-Google-Smtp-Source: APXvYqyq9kee/BwW8Y183cIkERh3hMoktZE0ZD02R1AGCYLkXfeV426iAWQPoC5LZ0Kpbrrs0cIa X-Received: by 2002:a9d:62d9:: with SMTP id z25mr14347716otk.249.1579508921111; Mon, 20 Jan 2020 00:28:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579508921; cv=none; d=google.com; s=arc-20160816; b=S8bnIJZcsrnPV7KHboo/Q+OpghMSu/aiq7uiZ+609bNF+DZo49LjBknKmrZIi2SAJi uPbPqs5viziKG5DKnb8J1ryYI8GnAaltnOFg5zwteua0NQFFvmuzDdudQKhpNUJBGIG8 q19ZZnRECoKuP5YB3+w94f7m2l9gRowCoZ5O/1s9gsWjQKZy2QrEkqHmTXliT3WesRFc 2/8bGs4oAMVKwitjPkL16ui+7y1MdA0b8U2NdzHmZtZu9tWkle2vDirn+S7MHPeO9KrZ WPYBOd54GZUdEXehjKbhthoqxxaI94l6o23+fvPfhUHgl8D/7sz3+/zbW3OGImrvqtbt aQXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=W2Rnnzs0kiQy+BG0cqC3sO+eou9c2S4tkpdjtsLWdL8=; b=eyRB29c3MZ/AIYl9JRoGm9bxyYWpElCM62cRAXvtnfqrc3UIqslfGw/OvQCxxIf9Bq 0mykXdZs88cDQoX1EY/44McUNrJjHBKkIWPYNC10P0fSsanOyOXlfFhN3KmKnqAQOfe2 DkwM1nvRmhGa+jsIEFLftAoX+ct+TtmNzFWc1mYpj/DrT3dMG55nY8mKnDKHggpVZ6DL rJvX9m8E7olUiakCxmCJaCAitD9V9sS5n7xyItKsm9xwJ3AiiA1ZVsafkowmD5nvvNsr xme5hXQvlpxLiMvV6e/ef83+l0OrQERxUQS8AawKJcw4SaP06XiuMS5IFzMxyx56GIeM dCRg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g14si18977640otj.10.2020.01.20.00.28.29; Mon, 20 Jan 2020 00:28:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728516AbgATI1b (ORCPT + 99 others); Mon, 20 Jan 2020 03:27:31 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:60806 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727065AbgATI1a (ORCPT ); Mon, 20 Jan 2020 03:27:30 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1itSOy-0002up-QL; Mon, 20 Jan 2020 09:27:16 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 68C631C1A3F; Mon, 20 Jan 2020 09:27:15 +0100 (CET) Date: Mon, 20 Jan 2020 08:27:15 -0000 From: "tip-bot2 for Maciej S. Szmigiero" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf clang: Fix build with Clang 9 Cc: "Maciej S. Szmigiero" , Dennis Schridde , Alexander Shishkin , clang-built-linux@googlegroups.com, Denis Pronin , Jiri Olsa , Mark Rutland , Namhyung Kim , Naohiro Aota , Peter Zijlstra , Arnaldo Carvalho de Melo , x86 , LKML In-Reply-To: <20191228171314.946469-2-mail@maciej.szmigiero.name> References: <20191228171314.946469-2-mail@maciej.szmigiero.name> MIME-Version: 1.0 Message-ID: <157950883517.396.18261374196273837423.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 411c0ec0b8131457cf52812de29f11dcbf491ce6 Gitweb: https://git.kernel.org/tip/411c0ec0b8131457cf52812de29f11dcbf491ce6 Author: Maciej S. Szmigiero AuthorDate: Sat, 28 Dec 2019 18:13:14 +01:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Tue, 14 Jan 2020 12:02:19 -03:00 perf clang: Fix build with Clang 9 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 Cc: Alexander Shishkin Cc: clang-built-linux@googlegroups.com Cc: Denis Pronin Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Naohiro Aota Cc: Peter Zijlstra Link: http://lore.kernel.org/lkml/20191228171314.946469-2-mail@maciej.szmigiero.name Signed-off-by: Arnaldo Carvalho de Melo --- 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 fc361c3..c8885df 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 =