[llvm] [BOLT] Add support for safe-icf (PR #116275)
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 14 19:51:03 PST 2024
================
@@ -276,12 +276,24 @@ class BinaryContext {
void deregisterSectionName(const BinarySection &Section);
public:
+ enum class ICFLevel {
+ None,
+ Safe, // Safe ICF for all sections.
+ All, // Aggressive ICF for code, but safe ICF for data, similar to MSVC's
----------------
dcci wrote:
I guess "Aggressive" or "Unsafe" would be a better name, unless you took inspiration for this enum from somewhere else.
https://github.com/llvm/llvm-project/pull/116275
More information about the llvm-commits
mailing list