Implement EmitTBSSSymbol for MachOStreamer.
authorEric Christopher <echristo@apple.com>
Tue, 18 May 2010 21:26:41 +0000 (21:26 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 18 May 2010 21:26:41 +0000 (21:26 +0000)
Fixes build failure as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104059 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCMachOStreamer.cpp

index e4ddf1a85d2a0f4117e87931bf1f43824a111933..4329221babb1438e0736de7121c017744f6bac17 100644 (file)
@@ -126,8 +126,8 @@ public:
   }
   virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0,
                             unsigned Size = 0, unsigned ByteAlignment = 0);
-  virtual void EmitTBSSSymbol(MCSymbol *Symbol, uint64_t Size,
-                              unsigned ByteAlignment = 0);
+  virtual void EmitTBSSSymbol(const MCSection *Section, MCSymbol *Symbol,
+                              uint64_t Size, unsigned ByteAlignment = 0);
   virtual void EmitBytes(StringRef Data, unsigned AddrSpace);
   virtual void EmitValue(const MCExpr *Value, unsigned Size,unsigned AddrSpace);
   virtual void EmitGPRel32Value(const MCExpr *Value) {
@@ -353,9 +353,11 @@ void MCMachOStreamer::EmitZerofill(const MCSection *Section, MCSymbol *Symbol,
     SectData.setAlignment(ByteAlignment);
 }
 
-void MCMachOStreamer::EmitTBSSSymbol(MCSymbol *Symbol, uint64_t Size,
-                                     unsigned ByteAlignment) {
-  assert(false && "Implement me!");
+// This should always be called with the thread local bss section.
+void MCMachOStreamer::EmitTBSSSymbol(const MCSection *Section, MCSymbol *Symbol,
+                                     uint64_t Size, unsigned ByteAlignment) {
+  EmitZerofill(Section, Symbol, Size, ByteAlignment);
+  return;
 }
 
 void MCMachOStreamer::EmitBytes(StringRef Data, unsigned AddrSpace) {