[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <157950883517.396.18261374196273837423.tip-bot2@tip-bot2>
Date: Mon, 20 Jan 2020 08:27:15 -0000
From: "tip-bot2 for Maciej S. Szmigiero" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: "Maciej S. Szmigiero" <mail@...iej.szmigiero.name>,
Dennis Schridde <devurandom@....net>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
clang-built-linux@...glegroups.com,
Denis Pronin <dannftk@...dex.ru>, Jiri Olsa <jolsa@...hat.com>,
Mark Rutland <mark.rutland@....com>,
Namhyung Kim <namhyung@...nel.org>,
Naohiro Aota <naota@...sp.net>,
Peter Zijlstra <peterz@...radead.org>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
x86 <x86@...nel.org>, LKML <linux-kernel@...r.kernel.org>
Subject: [tip: perf/core] perf clang: Fix build with Clang 9
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 <mail@...iej.szmigiero.name>
AuthorDate: Sat, 28 Dec 2019 18:13:14 +01:00
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
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 <mail@...iej.szmigiero.name>
Reviewed-by: Dennis Schridde <devurandom@....net>
Cc: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
Cc: clang-built-linux@...glegroups.com
Cc: Denis Pronin <dannftk@...dex.ru>
Cc: Jiri Olsa <jolsa@...hat.com>
Cc: Mark Rutland <mark.rutland@....com>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Naohiro Aota <naota@...sp.net>
Cc: Peter Zijlstra <peterz@...radead.org>
Link: http://lore.kernel.org/lkml/20191228171314.946469-2-mail@maciej.szmigiero.name
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
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<CompilerInvocation> CI =
Powered by blists - more mailing lists