perf clang: Use real file system for #include
authorWang Nan <wangnan0@huawei.com>
Sat, 26 Nov 2016 07:03:35 +0000 (07:03 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Dec 2016 18:51:44 +0000 (15:51 -0300)
commit77dfa84a843c0bc935a6c8664f2556573e30845f
tree476af5d009d076632647e92dc5cbe8b131cae420
parent00b86691c77c6576861b82a3cfe4d609800758fe
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 <wangnan0@huawei.com>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Joe Stringer <joe@ovn.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/20161126070354.141764-12-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/c++/clang.cpp
tools/perf/util/c++/clang.h