[llvm] [BOLT] Add support for safe-icf (PR #116275)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 15 14:12:23 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
----------------
ayermolo wrote:
In LLD it's None, Safe, All.
https://github.com/llvm/llvm-project/pull/116275
More information about the llvm-commits
mailing list