[llvm] [NFC] Remove unused MCObjectFileInfo methods (PR #209906)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 15 14:48:56 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-mc

Author: Arthur Eubanks (aeubanks)

<details>
<summary>Changes</summary>



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


1 Files Affected:

- (modified) llvm/include/llvm/MC/MCObjectFileInfo.h (-15) 


``````````diff
diff --git a/llvm/include/llvm/MC/MCObjectFileInfo.h b/llvm/include/llvm/MC/MCObjectFileInfo.h
index 379c4e9094531..d10411b56517d 100644
--- a/llvm/include/llvm/MC/MCObjectFileInfo.h
+++ b/llvm/include/llvm/MC/MCObjectFileInfo.h
@@ -380,21 +380,6 @@ class LLVM_ABI MCObjectFileInfo {
 
   MCSection *getPCSection(StringRef Name, const MCSection *TextSec) const;
 
-  // ELF specific sections.
-  MCSection *getDataRelROSection() const { return DataRelROSection; }
-  const MCSection *getMergeableConst4Section() const {
-    return MergeableConst4Section;
-  }
-  const MCSection *getMergeableConst8Section() const {
-    return MergeableConst8Section;
-  }
-  const MCSection *getMergeableConst16Section() const {
-    return MergeableConst16Section;
-  }
-  const MCSection *getMergeableConst32Section() const {
-    return MergeableConst32Section;
-  }
-
   // MachO specific sections.
   const MCSection *getTLSTLVSection() const { return TLSTLVSection; }
   const MCSection *getTLSThreadInitSection() const {

``````````

</details>


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


More information about the llvm-commits mailing list