aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MCAsmStreamer.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-05-17 02:13:02 +0000
committerEric Christopher <echristo@apple.com>2010-05-17 02:13:02 +0000
commitd04d98d24fe5c82c7e69b711cd989ef96980fb8e (patch)
treeab5d82a46568323dc11255602439195c3fc3ea47 /lib/MC/MCAsmStreamer.cpp
parente6aba837974f7d2539efad9a09fe06b4d1566e5d (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAsmStreamer.cpp')
-rw-r--r--lib/MC/MCAsmStreamer.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp
index 62735ad3f3..4f7699ca99 100644
--- a/lib/MC/MCAsmStreamer.cpp
+++ b/lib/MC/MCAsmStreamer.cpp
@@ -363,14 +363,13 @@ void MCAsmStreamer::EmitZerofill(const MCSection *Section, MCSymbol *Symbol,
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);