File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
llvm/test/tools/llvm-profdata Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,17 @@ void no_cfg() {}
2020void no_counter() {}
2121void no_profc() {}
2222void no_func() {}
23+
24+ // NOTE: After generating the IR below, manually remove the follwing pieces
25+ // 1 . Remove "@removed" function and "@__profc_removed" global
26+ // 2 . Remove "Function Name" annotation for "@no_name"
27+ // 3 . Remove "CFG Hash" annotation for "@no_cfg"
28+ // 4 . Remove "Num Counters" annotation for "@no_counter"
29+ // 5 . Remove "@__profc_no_profc"
30+ // 6 . Remove "@no_func"
2331;--- gen
2432clang --target =x86_64-linux -fprofile-generate -mllvm -debug-info-correlate -S -emit-llvm -g a.c -o -
25- # NOTE: After generating the IR below, manually remove the follwing pieces
26- # 1 . Remove "@removed" function and "@__profc_removed" global
27- # 2 . Remove "Function Name" annotation for "@no_name"
28- # 3 . Remove "CFG Hash" annotation for "@no_cfg"
29- # 4 . Remove "Num Counters" annotation for "@no_counter"
30- # 5 . Remove "@__profc_no_profc"
31- # 6 . Remove "@no_func"
33+
3234;--- a.ll
3335; ModuleID = 'a.c'
3436source_filename = "a.c"
You can’t perform that action at this time.
0 commit comments