mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	Implement EmitTBSSSymbol for MachOStreamer.
Fixes build failure as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104059 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -126,8 +126,8 @@ public: | |||||||
|   } |   } | ||||||
|   virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0, |   virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0, | ||||||
|                             unsigned Size = 0, unsigned ByteAlignment = 0); |                             unsigned Size = 0, unsigned ByteAlignment = 0); | ||||||
|   virtual void EmitTBSSSymbol(MCSymbol *Symbol, uint64_t Size, |   virtual void EmitTBSSSymbol(const MCSection *Section, MCSymbol *Symbol, | ||||||
|                               unsigned ByteAlignment = 0); |                               uint64_t Size, unsigned ByteAlignment = 0); | ||||||
|   virtual void EmitBytes(StringRef Data, unsigned AddrSpace); |   virtual void EmitBytes(StringRef Data, unsigned AddrSpace); | ||||||
|   virtual void EmitValue(const MCExpr *Value, unsigned Size,unsigned AddrSpace); |   virtual void EmitValue(const MCExpr *Value, unsigned Size,unsigned AddrSpace); | ||||||
|   virtual void EmitGPRel32Value(const MCExpr *Value) { |   virtual void EmitGPRel32Value(const MCExpr *Value) { | ||||||
| @@ -353,9 +353,11 @@ void MCMachOStreamer::EmitZerofill(const MCSection *Section, MCSymbol *Symbol, | |||||||
|     SectData.setAlignment(ByteAlignment); |     SectData.setAlignment(ByteAlignment); | ||||||
| } | } | ||||||
|  |  | ||||||
| void MCMachOStreamer::EmitTBSSSymbol(MCSymbol *Symbol, uint64_t Size, | // This should always be called with the thread local bss section. | ||||||
|                                      unsigned ByteAlignment) { | void MCMachOStreamer::EmitTBSSSymbol(const MCSection *Section, MCSymbol *Symbol, | ||||||
|   assert(false && "Implement me!"); |                                      uint64_t Size, unsigned ByteAlignment) { | ||||||
|  |   EmitZerofill(Section, Symbol, Size, ByteAlignment); | ||||||
|  |   return; | ||||||
| } | } | ||||||
|  |  | ||||||
| void MCMachOStreamer::EmitBytes(StringRef Data, unsigned AddrSpace) { | void MCMachOStreamer::EmitBytes(StringRef Data, unsigned AddrSpace) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user