[llvm] [MC] Set HasAggressiveSymbolFolding to true (PR #84242)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 7 13:28:54 PST 2024
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/84242
>From 85b377e837db80ef12068e0a2c415be107341d06 Mon Sep 17 00:00:00 2001
From: Rose <gfunni234 at gmail.com>
Date: Wed, 6 Mar 2024 16:26:30 -0500
Subject: [PATCH] [MC] Set HasAggressiveSymbolFolding to true
MC has long been the system assembler now, so we can enable this.
---
llvm/lib/MC/MCAsmInfoDarwin.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/llvm/lib/MC/MCAsmInfoDarwin.cpp b/llvm/lib/MC/MCAsmInfoDarwin.cpp
index 2137b81c799f31..d96e07d2295935 100644
--- a/llvm/lib/MC/MCAsmInfoDarwin.cpp
+++ b/llvm/lib/MC/MCAsmInfoDarwin.cpp
@@ -76,8 +76,7 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {
HasMachoZeroFillDirective = true; // Uses .zerofill
HasMachoTBSSDirective = true; // Uses .tbss
- // FIXME: Change this once MC is the system assembler.
- HasAggressiveSymbolFolding = false;
+ HasAggressiveSymbolFolding = true;
HiddenVisibilityAttr = MCSA_PrivateExtern;
HiddenDeclarationVisibilityAttr = MCSA_Invalid;
More information about the llvm-commits
mailing list