[llvm] [MC] Remove unused section argument (PR #99831)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 21 16:39:27 PDT 2024


https://github.com/AtariDreams created https://github.com/llvm/llvm-project/pull/99831

None

>From 6167f327fb942173c2e65933e62780796f2925df Mon Sep 17 00:00:00 2001
From: Rose <gfunni234 at gmail.com>
Date: Sun, 21 Jul 2024 15:50:04 -0400
Subject: [PATCH] [MC] Remove unused section argument

---
 llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp | 4 ++--
 llvm/lib/CodeGen/AsmPrinter/AddressPool.h   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp b/llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp
index 00ee4e1b47a82..d0de3257c6e68 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp
@@ -24,7 +24,7 @@ unsigned AddressPool::getIndex(const MCSymbol *Sym, bool TLS) {
   return IterBool.first->second.Number;
 }
 
-MCSymbol *AddressPool::emitHeader(AsmPrinter &Asm, MCSection *Section) {
+MCSymbol *AddressPool::emitHeader(AsmPrinter &Asm) {
   static const uint8_t AddrSize = Asm.MAI->getCodePointerSize();
 
   MCSymbol *EndLabel =
@@ -50,7 +50,7 @@ void AddressPool::emit(AsmPrinter &Asm, MCSection *AddrSection) {
   MCSymbol *EndLabel = nullptr;
 
   if (Asm.getDwarfVersion() >= 5)
-    EndLabel = emitHeader(Asm, AddrSection);
+    EndLabel = emitHeader(Asm);
 
   // Define the symbol that marks the start of the contribution.
   // It is referenced via DW_AT_addr_base.
diff --git a/llvm/lib/CodeGen/AsmPrinter/AddressPool.h b/llvm/lib/CodeGen/AsmPrinter/AddressPool.h
index f1edc6c330d51..c82a976a3f7e5 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AddressPool.h
+++ b/llvm/lib/CodeGen/AsmPrinter/AddressPool.h
@@ -54,7 +54,7 @@ class AddressPool {
   void setLabel(MCSymbol *Sym) { AddressTableBaseSym = Sym; }
 
 private:
-  MCSymbol *emitHeader(AsmPrinter &Asm, MCSection *Section);
+  MCSymbol *emitHeader(AsmPrinter &Asm);
 
   /// Symbol designates the start of the contribution to the address table.
   MCSymbol *AddressTableBaseSym = nullptr;



More information about the llvm-commits mailing list