From abd7514a68b0687f00d9df73cf5c79cb61ff08b6 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79029 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/ELFWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/ELFWriter.cpp') diff --git a/lib/CodeGen/ELFWriter.cpp b/lib/CodeGen/ELFWriter.cpp index e62079f947..ffbaf6ba92 100644 --- a/lib/CodeGen/ELFWriter.cpp +++ b/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-18-g5258