Rollup merge of #134139 - mustartt:pgo-linker-flag, r=saethlin
[AIX] keep profile-rt symbol alive Clang passes `-u __llvm_profile_runtime` on AIX. https://reviews.llvm.org/D136192 We want to preserve the symbol in the case there are no instrumented object files.
This commit is contained in:
commit
2891a92e90
1 changed files with 2 additions and 0 deletions
|
@ -1694,6 +1694,8 @@ impl<'a> Linker for AixLinker<'a> {
|
|||
|
||||
fn pgo_gen(&mut self) {
|
||||
self.link_arg("-bdbg:namedsects:ss");
|
||||
self.link_arg("-u");
|
||||
self.link_arg("__llvm_profile_runtime");
|
||||
}
|
||||
|
||||
fn control_flow_guard(&mut self) {}
|
||||
|
|
Loading…
Add table
Reference in a new issue