[llvm-commits] [llvm] r104059 - /llvm/trunk/lib/MC/MCMachOStreamer.cpp

Eric Christopher echristo at apple.com
Tue May 18 14:26:41 PDT 2010


Author: echristo
Date: Tue May 18 16:26:41 2010
New Revision: 104059

URL: http://llvm.org/viewvc/llvm-project?rev=104059&view=rev
Log:
Implement EmitTBSSSymbol for MachOStreamer.

Fixes build failure as well.

Modified:
    llvm/trunk/lib/MC/MCMachOStreamer.cpp

Modified: llvm/trunk/lib/MC/MCMachOStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCMachOStreamer.cpp?rev=104059&r1=104058&r2=104059&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCMachOStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCMachOStreamer.cpp Tue May 18 16:26:41 2010
@@ -126,8 +126,8 @@
   }
   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 @@
     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) {





More information about the llvm-commits mailing list