Skip to content

Commit 69d66fa

Browse files
authored
[clang] Fix description for fprofile-sample-use= on Windows (#117973)
We only support -fprofile-sample-use= for clang-cl.
1 parent f669453 commit 69d66fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/docs/UsersManual.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,7 +2660,7 @@ usual build cycle when using sample profilers for optimization:
26602660
26612661
> clang-cl /O2 -gdwarf -gline-tables-only ^
26622662
/clang:-fdebug-info-for-profiling /clang:-funique-internal-linkage-names ^
2663-
/fprofile-sample-use=code.prof code.cc /Fe:code -fuse-ld=lld /link /debug:dwarf
2663+
-fprofile-sample-use=code.prof code.cc /Fe:code -fuse-ld=lld /link /debug:dwarf
26642664
26652665
[OPTIONAL] Sampling-based profiles can have inaccuracies or missing block/
26662666
edge counters. The profile inference algorithm (profi) can be used to infer
@@ -2679,7 +2679,7 @@ usual build cycle when using sample profilers for optimization:
26792679
26802680
> clang-cl /clang:-fsample-profile-use-profi /O2 -gdwarf -gline-tables-only ^
26812681
/clang:-fdebug-info-for-profiling /clang:-funique-internal-linkage-names ^
2682-
/fprofile-sample-use=code.prof code.cc /Fe:code -fuse-ld=lld /link /debug:dwarf
2682+
-fprofile-sample-use=code.prof code.cc /Fe:code -fuse-ld=lld /link /debug:dwarf
26832683
26842684
Sample Profile Formats
26852685
""""""""""""""""""""""

0 commit comments

Comments
 (0)