diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-25 18:33:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-25 18:33:40 +0000 |
commit | bc696445e17308d64e579589642cac29dcbac87f (patch) | |
tree | 4b47e6171922bea8f77b047ce40752813871507c /llvm/lib/MC | |
parent | bc8f63853105b3712c665a80b17b77f1d27fa141 (diff) | |
download | bcm5719-llvm-bc696445e17308d64e579589642cac29dcbac87f.tar.gz bcm5719-llvm-bc696445e17308d64e579589642cac29dcbac87f.zip |
emit ELF .type directives through MCStreamer instead of doing it textually.
llvm-svn: 94436
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r-- | llvm/lib/MC/MCAsmStreamer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp index f577ad4b4b6..9d9f46a3786 100644 --- a/llvm/lib/MC/MCAsmStreamer.cpp +++ b/llvm/lib/MC/MCAsmStreamer.cpp @@ -234,7 +234,7 @@ void MCAsmStreamer::EmitSymbolAttribute(MCSymbol *Symbol, case MCSA_ELF_TypeCommon: /// .type _foo, STT_COMMON # aka @common case MCSA_ELF_TypeNoType: /// .type _foo, STT_NOTYPE # aka @notype assert(MAI.hasDotTypeDotSizeDirective() && "Symbol Attr not supported"); - OS << ".type " << *Symbol << ',' + OS << "\t.type " << *Symbol << ',' << ((MAI.getCommentString()[0] != '@') ? '@' : '%'); switch (Attribute) { default: assert(0 && "Unknown ELF .type"); |