aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/c++/clang.h
diff options
context:
space:
mode:
authorWang Nan <[email protected]>2016-11-26 07:03:35 +0000
committerArnaldo Carvalho de Melo <[email protected]>2016-12-05 18:51:44 +0000
commit77dfa84a843c0bc935a6c8664f2556573e30845f (patch)
tree476af5d009d076632647e92dc5cbe8b131cae420 /tools/perf/util/c++/clang.h
parentperf clang: Add builtin clang support ant test case (diff)
downloadkernel-77dfa84a843c0bc935a6c8664f2556573e30845f.tar.gz
kernel-77dfa84a843c0bc935a6c8664f2556573e30845f.zip
perf clang: Use real file system for #include
Utilize clang's OverlayFileSystem facility, allow CompilerInstance to access real file system. With this patch the '#include' directive can be used. Add a new getModuleFromSource for real file. Signed-off-by: Wang Nan <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: He Kuang <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Joe Stringer <[email protected]> Cc: Zefan Li <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.h')
-rw-r--r--tools/perf/util/c++/clang.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/c++/clang.h b/tools/perf/util/c++/clang.h
index f64483be43d0..90aff0162f1c 100644
--- a/tools/perf/util/c++/clang.h
+++ b/tools/perf/util/c++/clang.h
@@ -12,5 +12,8 @@ using namespace llvm;
std::unique_ptr<Module>
getModuleFromSource(StringRef Name, StringRef Content);
+std::unique_ptr<Module>
+getModuleFromSource(StringRef Path);
+
}
#endif