[llvm] [MergeFunctions] keep the symbol of a function an alias points at on COFF (PR #222024)

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 12:08:07 PDT 2026


================
@@ -307,7 +307,8 @@ class MergeFunctions {
   // If needed, replace G with an alias to F if possible, or a thunk to F if
   // profitable. Returns false if neither is the case. If \p G is not needed
   // (i.e. it is discardable and not used), \p G is removed directly.
-  bool writeThunkOrAliasIfNeeded(Function *F, Function *G);
+  bool writeThunkOrAliasIfNeeded(Function *F, Function *G,
----------------
compnerd wrote:

Given that we now have `AllowAlias`, perhaps we should split this up into:

1. `createThunk`
2. `createAlias`

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


More information about the llvm-commits mailing list