[llvm] [MC] Remove dead code. (PR #114798)
Ivan Kosarev via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 4 06:11:56 PST 2024
https://github.com/kosarev created https://github.com/llvm/llvm-project/pull/114798
None
>From be822468d86bd1795f98d14afb71dd7f03d95f4e Mon Sep 17 00:00:00 2001
From: Ivan Kosarev <ivan.kosarev at amd.com>
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 b97f9d9f5fed0f..a4404b5d1f8d4f 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,
More information about the llvm-commits
mailing list