summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCELFStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-14 21:11:16 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-14 21:11:16 +0000
commita7d0bed3368b809ad47d7113cad82ca5c3a59957 (patch)
tree9b3cadc171d5f13c2962c18ebdb966e216702246 /llvm/lib/MC/MCELFStreamer.cpp
parent0927edf815169c8cae86d2ff1a874ca223d1e392 (diff)
downloadbcm5719-llvm-a7d0bed3368b809ad47d7113cad82ca5c3a59957.tar.gz
bcm5719-llvm-a7d0bed3368b809ad47d7113cad82ca5c3a59957.zip
Fix another case of a .comm directive without a corresponding .type
directive. llvm-svn: 119073
Diffstat (limited to 'llvm/lib/MC/MCELFStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCELFStreamer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp
index ba51f67f786..a2d94f5ba15 100644
--- a/llvm/lib/MC/MCELFStreamer.cpp
+++ b/llvm/lib/MC/MCELFStreamer.cpp
@@ -409,9 +409,10 @@ void MCELFStreamer::EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
if (!BindingExplicitlySet.count(Symbol)) {
SetBinding(SD, ELF::STB_GLOBAL);
SD.setExternal(true);
- SetType(SD, ELF::STT_OBJECT);
}
+ SetType(SD, ELF::STT_OBJECT);
+
if (GetBinding(SD) == ELF_STB_Local) {
const MCSection *Section = getAssembler().getContext().getELFSection(".bss",
MCSectionELF::SHT_NOBITS,
OpenPOWER on IntegriCloud