Lines Matching full:symbol
99 auto *Symbol = cast<MCSymbolELF>(S); in EmitLabel() local
100 assert(Symbol->isUndefined() && "Cannot define a symbol twice!"); in EmitLabel()
102 MCObjectStreamer::EmitLabel(Symbol); in EmitLabel()
107 Symbol->setType(ELF::STT_TLS); in EmitLabel()
163 void MCELFStreamer::EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) { in EmitWeakReference() argument
164 getAssembler().registerSymbol(*Symbol); in EmitWeakReference()
166 Symbol, MCSymbolRefExpr::VK_WEAKREF, getContext()); in EmitWeakReference()
190 auto *Symbol = cast<MCSymbolELF>(S); in EmitSymbolAttribute() local
194 // Note that we intentionally cannot use the symbol data here; this is in EmitSymbolAttribute()
197 ISD.Symbol = Symbol; in EmitSymbolAttribute()
203 // Adding a symbol attribute always introduces the symbol, note that an in EmitSymbolAttribute()
205 // the symbol with the assembler. in EmitSymbolAttribute()
206 getAssembler().registerSymbol(*Symbol); in EmitSymbolAttribute()
208 // The implementation of symbol attributes is designed to match 'as', but it in EmitSymbolAttribute()
230 Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_OBJECT)); in EmitSymbolAttribute()
231 Symbol->setBinding(ELF::STB_GNU_UNIQUE); in EmitSymbolAttribute()
232 Symbol->setExternal(true); in EmitSymbolAttribute()
236 Symbol->setBinding(ELF::STB_GLOBAL); in EmitSymbolAttribute()
237 Symbol->setExternal(true); in EmitSymbolAttribute()
242 Symbol->setBinding(ELF::STB_WEAK); in EmitSymbolAttribute()
243 Symbol->setExternal(true); in EmitSymbolAttribute()
247 Symbol->setBinding(ELF::STB_LOCAL); in EmitSymbolAttribute()
248 Symbol->setExternal(false); in EmitSymbolAttribute()
252 Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_FUNC)); in EmitSymbolAttribute()
256 Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_GNU_IFUNC)); in EmitSymbolAttribute()
260 Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_OBJECT)); in EmitSymbolAttribute()
264 Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_TLS)); in EmitSymbolAttribute()
268 // TODO: Emit these as a common symbol. in EmitSymbolAttribute()
269 Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_OBJECT)); in EmitSymbolAttribute()
273 Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_NOTYPE)); in EmitSymbolAttribute()
277 Symbol->setVisibility(ELF::STV_PROTECTED); in EmitSymbolAttribute()
281 Symbol->setVisibility(ELF::STV_HIDDEN); in EmitSymbolAttribute()
285 Symbol->setVisibility(ELF::STV_INTERNAL); in EmitSymbolAttribute()
297 auto *Symbol = cast<MCSymbolELF>(S); in EmitCommonSymbol() local
298 getAssembler().registerSymbol(*Symbol); in EmitCommonSymbol()
300 if (!Symbol->isBindingSet()) { in EmitCommonSymbol()
301 Symbol->setBinding(ELF::STB_GLOBAL); in EmitCommonSymbol()
302 Symbol->setExternal(true); in EmitCommonSymbol()
305 Symbol->setType(ELF::STT_OBJECT); in EmitCommonSymbol()
307 if (Symbol->getBinding() == ELF::STB_LOCAL) { in EmitCommonSymbol()
314 EmitLabel(Symbol); in EmitCommonSymbol()
323 if(Symbol->declareCommon(Size, ByteAlignment)) in EmitCommonSymbol()
324 report_fatal_error("Symbol: " + Symbol->getName() + in EmitCommonSymbol()
328 cast<MCSymbolELF>(Symbol) in EmitCommonSymbol()
332 void MCELFStreamer::emitELFSize(MCSymbolELF *Symbol, const MCExpr *Value) { in emitELFSize() argument
333 Symbol->setSize(Value); in emitELFSize()
338 auto *Symbol = cast<MCSymbolELF>(S); in EmitLocalCommonSymbol() local
340 getAssembler().registerSymbol(*Symbol); in EmitLocalCommonSymbol()
341 Symbol->setBinding(ELF::STB_LOCAL); in EmitLocalCommonSymbol()
342 Symbol->setExternal(false); in EmitLocalCommonSymbol()
343 EmitCommonSymbol(Symbol, Size, ByteAlignment); in EmitLocalCommonSymbol()
364 // Add a symbol for the file name of this module. They start after the
365 // null symbol and don't count as normal symbol, i.e. a non-STT_FILE symbol
646 void MCELFStreamer::EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) { in EmitSymbolDesc() argument
650 void MCELFStreamer::BeginCOFFSymbolDef(const MCSymbol *Symbol) { in BeginCOFFSymbolDef() argument
666 void MCELFStreamer::EmitZerofill(MCSection *Section, MCSymbol *Symbol, in EmitZerofill() argument
671 void MCELFStreamer::EmitTBSSSymbol(MCSection *Section, MCSymbol *Symbol, in EmitTBSSSymbol() argument