[llvm] bcf8ded - [MC] Remove dead code. (#114798)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 22:47:41 PDT 2025
Author: Ivan Kosarev
Date: 2025-06-05T22:47:36-07:00
New Revision: bcf8ded8496dce39610a20cda7999a43f1eb0946
URL: https://github.com/llvm/llvm-project/commit/bcf8ded8496dce39610a20cda7999a43f1eb0946
DIFF: https://github.com/llvm/llvm-project/commit/bcf8ded8496dce39610a20cda7999a43f1eb0946.diff
LOG: [MC] Remove dead code. (#114798)
Added:
Modified:
llvm/lib/MC/MCContext.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp
index 37bae640352e6..99c74f6f5c978 100644
--- a/llvm/lib/MC/MCContext.cpp
+++ b/llvm/lib/MC/MCContext.cpp
@@ -626,9 +626,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
diff erentiated by the quadruple (section_name, group_name,
More information about the llvm-commits
mailing list