diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-08-14 19:45:38 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-08-14 19:45:38 +0000 |
commit | 6c1789cb271d1ad2824855b131cdc31c9a1d74c8 (patch) | |
tree | 0b3f5750d277b7ab6a8cc65033c3b84d4672b603 /lib/CodeGen/ELFWriter.cpp | |
parent | 58a43329c2a35725d7b75adc137f12e3f8813123 (diff) | |
download | external_llvm-6c1789cb271d1ad2824855b131cdc31c9a1d74c8.tar.gz external_llvm-6c1789cb271d1ad2824855b131cdc31c9a1d74c8.tar.bz2 external_llvm-6c1789cb271d1ad2824855b131cdc31c9a1d74c8.zip |
*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
Diffstat (limited to 'lib/CodeGen/ELFWriter.cpp')
-rw-r--r-- | lib/CodeGen/ELFWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |