[llvm-branch-commits] [llvm] [BOLT][BAT] Fix handling of split functions (PR #87569)

Maksim Panchenko via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Apr 10 13:28:08 PDT 2024


================
@@ -245,14 +245,12 @@ class DataAggregator : public DataReader {
   /// disassembled BinaryFunctions
   BinaryFunction *getBinaryFunctionContainingAddress(uint64_t Address) const;
 
+  /// Perform BAT translation for a given \p Func and return the parent
+  /// BinaryFunction or nullptr.
+  BinaryFunction *getParentFunction(const BinaryFunction &Func) const;
----------------
maksfb wrote:

If the function is BAT-specific, it should be clear from the name.

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


More information about the llvm-branch-commits mailing list