diff options
author | Amir Ayupov <aaupov@fb.com> | 2024-04-29 20:14:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 11:14:31 -0700 |
commit | a1e9608b0ff8054abb62d35147a04dd65d965a3e (patch) | |
tree | 332c3c9d7b283d6ad0159327f5a920dc807c4682 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 7e2eeb5753dee9719054a0a9c2315a82a2afbf32 (diff) | |
download | llvm-a1e9608b0ff8054abb62d35147a04dd65d965a3e.zip llvm-a1e9608b0ff8054abb62d35147a04dd65d965a3e.tar.gz llvm-a1e9608b0ff8054abb62d35147a04dd65d965a3e.tar.bz2 |
[BOLT] Use symbol table info in registerFragment (#89648)
Fragment matching relies on symbol names to identify and register split
function fragments. However, as split fragments are often local symbols,
name aliasing is possible. For such cases, use symbol table to resolve
ambiguities.
This requires the presence of FILE symbols in the input binary. As BOLT
requires non-stripped binary, this is a reasonable assumption. Note that
`strip -g` removes FILE symbols by default, but `--keep-file-symbols`
can be used to preserve them.
Depends on: https://github.com/llvm/llvm-project/pull/89861
Test Plan:
Updated X86/fragment-lite.s
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions