From c773141e668d8b2a97d03b0fd79ae0518afce79e Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Fri, 14 Aug 2009 19:45:38 +0000 Subject: *try* to use a better name to describe how common symbols are marked on the elf object file. llvm-svn: 79029 --- llvm/lib/MC/MCSectionELF.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'llvm/lib/MC/MCSectionELF.cpp') diff --git a/llvm/lib/MC/MCSectionELF.cpp b/llvm/lib/MC/MCSectionELF.cpp index 246bf4adac8..3d8774ceeb2 100644 --- a/llvm/lib/MC/MCSectionELF.cpp +++ b/llvm/lib/MC/MCSectionELF.cpp @@ -122,8 +122,10 @@ void MCSectionELF::PrintSwitchToSection(const TargetAsmInfo &TAI, OS << '\n'; } -// IsCommon - True if this section contains only common symbols -bool MCSectionELF::IsCommon() const { +// 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 (strncmp(SectionName.c_str(), ".gnu.linkonce.", 14) == 0) return true; -- cgit v1.2.3