From be822468d86bd1795f98d14afb71dd7f03d95f4e Mon Sep 17 00:00:00 2001 From: Ivan Kosarev Date: Mon, 4 Nov 2024 14:08:30 +0000 Subject: [PATCH] [MC] Remove dead code. --- llvm/lib/MC/MCContext.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index b97f9d9f5fed0..a4404b5d1f8d4 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -575,9 +575,6 @@ MCSectionELF *MCContext::getELFSection(const Twine &Section, unsigned Type, const MCSymbolELF *GroupSym, bool IsComdat, unsigned UniqueID, const MCSymbolELF *LinkedToSym) { - StringRef Group = ""; - if (GroupSym) - Group = GroupSym->getName(); assert(!(LinkedToSym && LinkedToSym->getName().empty())); // Sections are differentiated by the quadruple (section_name, group_name,