================
@@ -28,6 +28,10 @@ struct GlobalMergeOptions {
   bool MergeConst = false;
   /// Whether we should merge global variables that have external linkage.
   bool MergeExternal = true;
+  /// Whether we should merge global variables that have private linkage.
+  bool MergePrivateGlobals = false;
----------------
chenzheng1030 wrote:

+1

Like the internal global variables, private global variables should always be 
merged and should not be guarded under an option. You've already done this in 
https://github.com/llvm/llvm-project/pull/101222 :)

https://github.com/llvm/llvm-project/pull/101224
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to