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/CodeGen/ELFWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/ELFWriter.cpp') diff --git a/llvm/lib/CodeGen/ELFWriter.cpp b/llvm/lib/CodeGen/ELFWriter.cpp index e62079f9472..ffbaf6ba925 100644 --- a/llvm/lib/CodeGen/ELFWriter.cpp +++ b/llvm/lib/CodeGen/ELFWriter.cpp @@ -356,7 +356,7 @@ void ELFWriter::EmitGlobal(const GlobalValue *GV) { unsigned Size = TD->getTypeAllocSize(GVar->getInitializer()->getType()); GblSym->Size = Size; - if (S->IsCommon()) { // Symbol must go to a common section + if (S->HasCommonSymbols()) { // Symbol must go to a common section GblSym->SectionIdx = ELFSection::SHN_COMMON; // A new linkonce section is created for each global in the -- cgit v1.2.3