diff options
Diffstat (limited to 'tools/perf/util/llvm-utils.h')
-rw-r--r-- | tools/perf/util/llvm-utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/util/llvm-utils.h b/tools/perf/util/llvm-utils.h index d3ad8deb5db4..bf3f3f4c4fe2 100644 --- a/tools/perf/util/llvm-utils.h +++ b/tools/perf/util/llvm-utils.h | |||
@@ -11,6 +11,8 @@ | |||
11 | struct llvm_param { | 11 | struct llvm_param { |
12 | /* Path of clang executable */ | 12 | /* Path of clang executable */ |
13 | const char *clang_path; | 13 | const char *clang_path; |
14 | /* Path of llc executable */ | ||
15 | const char *llc_path; | ||
14 | /* | 16 | /* |
15 | * Template of clang bpf compiling. 5 env variables | 17 | * Template of clang bpf compiling. 5 env variables |
16 | * can be used: | 18 | * can be used: |
@@ -23,6 +25,13 @@ struct llvm_param { | |||
23 | const char *clang_bpf_cmd_template; | 25 | const char *clang_bpf_cmd_template; |
24 | /* Will be filled in $CLANG_OPTIONS */ | 26 | /* Will be filled in $CLANG_OPTIONS */ |
25 | const char *clang_opt; | 27 | const char *clang_opt; |
28 | /* | ||
29 | * If present it'll add -emit-llvm to $CLANG_OPTIONS to pipe | ||
30 | * the clang output to llc, useful for new llvm options not | ||
31 | * yet selectable via 'clang -mllvm option', such as -mattr=dwarfris | ||
32 | * in clang 6.0/llvm 7 | ||
33 | */ | ||
34 | const char *opts; | ||
26 | /* Where to find kbuild system */ | 35 | /* Where to find kbuild system */ |
27 | const char *kbuild_dir; | 36 | const char *kbuild_dir; |
28 | /* | 37 | /* |