Assume that we'll handle mangling the symbols earlier and just put the
symbol to the file as we have it. Simplifies out tbss handling.
llvm-svn: 103928
diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp
index 62735ad..4f7699c 100644
--- a/llvm/lib/MC/MCAsmStreamer.cpp
+++ b/llvm/lib/MC/MCAsmStreamer.cpp
@@ -363,14 +363,13 @@
EmitEOL();
}
-// .tbss sym$tlv$init, size, align
+// .tbss sym, size, align
+// This depends that the symbol has already been mangled from the original,
+// e.g. _a.
void MCAsmStreamer::EmitTBSSSymbol(MCSymbol *Symbol, uint64_t Size,
unsigned ByteAlignment) {
assert(Symbol != NULL && "Symbol shouldn't be NULL!");
- OS << ".tbss ";
-
- // This is a mach-o specific directive and the name requires some mangling.
- OS << *Symbol << "$tlv$init, " << Size;
+ OS << ".tbss " << *Symbol << ", " << Size;
// Output align if we have it.
if (ByteAlignment != 0) OS << ", " << Log2_32(ByteAlignment);