diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2019-08-28 09:59:10 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-08-28 18:14:57 -0300 |
commit | 630aec1a7fd60ac355d5f2d67b5454912c5971a6 (patch) | |
tree | e9607f53cc5676e52445edf695a28ed5d3a88a2c /tools/perf/util/c++/clang-test.cpp | |
parent | 2da39f1cc36bff4cc53dc32a4afb3def488cc766 (diff) |
perf clang: Delete needless util-cxx.h header
It was put in place just to make sure the 'new' C++ operator wouldn't
clash with some argument name in util.h, but there is not anymore any
such argument and also the reason stated for util.h to be included there
was to get the __maybe_unused definition, that is in linux/compiler.h,
so use that instead and nuke util-cxx.h.
Cc: Adrian Hunter <[email protected]>
Cc: He Kuang <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
-rw-r--r-- | tools/perf/util/c++/clang-test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/c++/clang-test.cpp b/tools/perf/util/c++/clang-test.cpp index 7b042a5ebc68..21b23605f78b 100644 --- a/tools/perf/util/c++/clang-test.cpp +++ b/tools/perf/util/c++/clang-test.cpp @@ -1,10 +1,12 @@ // SPDX-License-Identifier: GPL-2.0 #include "clang.h" #include "clang-c.h" +extern "C" { +#include "../util.h" +} #include "llvm/IR/Function.h" #include "llvm/IR/LLVMContext.h" -#include <util-cxx.h> #include <tests/llvm.h> #include <string> |