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

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 22 19:51:51 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:

If memory is a concern, you should free it once done processing. I find the savings questionable to be worth it over readability, especially when you compare symbols.

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


More information about the llvm-commits mailing list