summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-25 18:33:40 +0000
committerChris Lattner <sabre@nondot.org>2010-01-25 18:33:40 +0000
commitbc696445e17308d64e579589642cac29dcbac87f (patch)
tree4b47e6171922bea8f77b047ce40752813871507c /llvm/lib/MC
parentbc8f63853105b3712c665a80b17b77f1d27fa141 (diff)
downloadbcm5719-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.cpp2
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");
OpenPOWER on IntegriCloud