[llvm] [BOLT] Use symbol table info in registerFragment (PR #89648)

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 22 18:04:31 PDT 2024


================
@@ -490,6 +490,9 @@ class RewriteInstance {
   /// Store all non-zero symbols in this map for a quick address lookup.
   std::map<uint64_t, llvm::object::SymbolRef> FileSymRefs;
 
+  /// FILE symbols used for disambiguating split function parents.
+  std::vector<object::DataRefImpl> FileSymbols;
----------------
maksfb wrote:

Are you using `DataRefImpl` instead of `SymbolRef`/`ELFSymbolRef` to save space?

https://github.com/llvm/llvm-project/pull/89648


More information about the llvm-commits mailing list