From 9de3a0701a06505aeab824fdc88f361a5018e473 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 14 Feb 2011 16:51:08 +0000 Subject: Move broken HasCommonSymbols to ELFWriter.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125490 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCSectionELF.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/MC/MCSectionELF.cpp') diff --git a/lib/MC/MCSectionELF.cpp b/lib/MC/MCSectionELF.cpp index da54106a19..56138cbc30 100644 --- a/lib/MC/MCSectionELF.cpp +++ b/lib/MC/MCSectionELF.cpp @@ -115,17 +115,6 @@ bool MCSectionELF::isVirtualSection() const { return getType() == ELF::SHT_NOBITS; } -// HasCommonSymbols - True if this section holds common symbols, this is -// indicated on the ELF object file by a symbol with SHN_COMMON section -// header index. -bool MCSectionELF::HasCommonSymbols() const { - - if (StringRef(SectionName).startswith(".gnu.linkonce.")) - return true; - - return false; -} - unsigned MCSectionELF::DetermineEntrySize(SectionKind Kind) { if (Kind.isMergeable1ByteCString()) return 1; if (Kind.isMergeable2ByteCString()) return 2; -- cgit v1.2.3-18-g5258