[llvm] [BOLT] Add support for safe-icf (PR #116275)

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 16 07:01:34 PST 2024


================
@@ -817,6 +820,12 @@ class BinaryFunction {
     return nullptr;
   }
 
+  /// Return true if function is referenced in non-control flow instructions.
+  bool hasAddressTaken() const { return HasAddressTaken; }
+
+  /// Set whether function is referenced in non-control flow instructions.
+  void setHasAddressTaken(bool Hat) { HasAddressTaken = Hat; }
----------------
dcci wrote:

`bool Hat` -> `bool AddressTaken`

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


More information about the llvm-commits mailing list