diff options
author | YongKang Zhu <yongzhu@fb.com> | 2025-02-20 17:14:33 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-20 17:14:33 -0800 |
commit | 9fa77c18548a4878cf53a5195f69d15a2d1d567f (patch) | |
tree | ee18645a2ad0bb625fc40c71c5a4967735e09032 /clang/lib/Sema/Sema.cpp | |
parent | 3c46debe6b0143932d1fc3ac0d566c7f159f364d (diff) | |
download | llvm-9fa77c18548a4878cf53a5195f69d15a2d1d567f.zip llvm-9fa77c18548a4878cf53a5195f69d15a2d1d567f.tar.gz llvm-9fa77c18548a4878cf53a5195f69d15a2d1d567f.tar.bz2 |
[BOLT][Linker][NFC] Remove lookupSymbol() in favor of lookupSymbolInfo() (#128070)
Sometimes we need to know the size of a symbol besides its address, so
maybe we can start using the existing `BOLTLinker::lookupSymbolInfo()`
(that returns symbol address and size) and remove
`BOLTLinker::lookupSymbol()` (that only returns symbol address). And for
both we need to check return value as it is wrapped in `std::optional<>`,
which makes the difference even smaller.
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
0 files changed, 0 insertions, 0 deletions