[llvm] [MC] Remove dead code. (PR #114798)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 4 06:12:32 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mc

Author: Ivan Kosarev (kosarev)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/114798.diff


1 Files Affected:

- (modified) llvm/lib/MC/MCContext.cpp (-3) 


``````````diff
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,

``````````

</details>


https://github.com/llvm/llvm-project/pull/114798


More information about the llvm-commits mailing list