diff options
Diffstat (limited to 'llvm/lib/MC/MCWasmStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCWasmStreamer.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/llvm/lib/MC/MCWasmStreamer.cpp b/llvm/lib/MC/MCWasmStreamer.cpp index e7e96ecbb3a01..bf8b142b355a3 100644 --- a/llvm/lib/MC/MCWasmStreamer.cpp +++ b/llvm/lib/MC/MCWasmStreamer.cpp @@ -49,7 +49,7 @@ void MCWasmStreamer::mergeFragment(MCDataFragment *DF, MCDataFragment *EF) { DF->getContents().append(EF->getContents().begin(), EF->getContents().end()); } -void MCWasmStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) { +void MCWasmStreamer::emitAssemblerFlag(MCAssemblerFlag Flag) { // Let the target do whatever target specific stuff it needs to do. getAssembler().getBackend().handleAssemblerFlag(Flag); @@ -57,7 +57,7 @@ void MCWasmStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) { llvm_unreachable("invalid assembler flag!"); } -void MCWasmStreamer::ChangeSection(MCSection *Section, +void MCWasmStreamer::changeSection(MCSection *Section, const MCExpr *Subsection) { MCAssembler &Asm = getAssembler(); auto *SectionWasm = cast<MCSectionWasm>(Section); @@ -65,11 +65,11 @@ void MCWasmStreamer::ChangeSection(MCSection *Section, if (Grp) Asm.registerSymbol(*Grp); - this->MCObjectStreamer::ChangeSection(Section, Subsection); + this->MCObjectStreamer::changeSection(Section, Subsection); Asm.registerSymbol(*Section->getBeginSymbol()); } -void MCWasmStreamer::EmitWeakReference(MCSymbol *Alias, +void MCWasmStreamer::emitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) { getAssembler().registerSymbol(*Symbol); const MCExpr *Value = MCSymbolRefExpr::create( @@ -77,7 +77,7 @@ void MCWasmStreamer::EmitWeakReference(MCSymbol *Alias, Alias->setVariableValue(Value); } -bool MCWasmStreamer::EmitSymbolAttribute(MCSymbol *S, MCSymbolAttr Attribute) { +bool MCWasmStreamer::emitSymbolAttribute(MCSymbol *S, MCSymbolAttr Attribute) { assert(Attribute != MCSA_IndirectSymbol && "indirect symbols not supported"); auto *Symbol = cast<MCSymbolWasm>(S); @@ -134,7 +134,7 @@ bool MCWasmStreamer::EmitSymbolAttribute(MCSymbol *S, MCSymbolAttr Attribute) { return true; } -void MCWasmStreamer::EmitCommonSymbol(MCSymbol *S, uint64_t Size, +void MCWasmStreamer::emitCommonSymbol(MCSymbol *S, uint64_t Size, unsigned ByteAlignment) { llvm_unreachable("Common symbols are not yet implemented for Wasm"); } @@ -143,34 +143,34 @@ void MCWasmStreamer::emitELFSize(MCSymbol *Symbol, const MCExpr *Value) { cast<MCSymbolWasm>(Symbol)->setSize(Value); } -void MCWasmStreamer::EmitLocalCommonSymbol(MCSymbol *S, uint64_t Size, +void MCWasmStreamer::emitLocalCommonSymbol(MCSymbol *S, uint64_t Size, unsigned ByteAlignment) { llvm_unreachable("Local common symbols are not yet implemented for Wasm"); } -void MCWasmStreamer::EmitValueImpl(const MCExpr *Value, unsigned Size, +void MCWasmStreamer::emitValueImpl(const MCExpr *Value, unsigned Size, SMLoc Loc) { - MCObjectStreamer::EmitValueImpl(Value, Size, Loc); + MCObjectStreamer::emitValueImpl(Value, Size, Loc); } -void MCWasmStreamer::EmitValueToAlignment(unsigned ByteAlignment, int64_t Value, +void MCWasmStreamer::emitValueToAlignment(unsigned ByteAlignment, int64_t Value, unsigned ValueSize, unsigned MaxBytesToEmit) { - MCObjectStreamer::EmitValueToAlignment(ByteAlignment, Value, ValueSize, + MCObjectStreamer::emitValueToAlignment(ByteAlignment, Value, ValueSize, MaxBytesToEmit); } -void MCWasmStreamer::EmitIdent(StringRef IdentString) { +void MCWasmStreamer::emitIdent(StringRef IdentString) { // TODO(sbc): Add the ident section once we support mergable strings // sections in the object format } -void MCWasmStreamer::EmitInstToFragment(const MCInst &Inst, +void MCWasmStreamer::emitInstToFragment(const MCInst &Inst, const MCSubtargetInfo &STI) { - this->MCObjectStreamer::EmitInstToFragment(Inst, STI); + this->MCObjectStreamer::emitInstToFragment(Inst, STI); } -void MCWasmStreamer::EmitInstToData(const MCInst &Inst, +void MCWasmStreamer::emitInstToData(const MCInst &Inst, const MCSubtargetInfo &STI) { MCAssembler &Assembler = getAssembler(); SmallVector<MCFixup, 4> Fixups; @@ -191,10 +191,10 @@ void MCWasmStreamer::EmitInstToData(const MCInst &Inst, DF->getContents().append(Code.begin(), Code.end()); } -void MCWasmStreamer::FinishImpl() { - EmitFrames(nullptr); +void MCWasmStreamer::finishImpl() { + emitFrames(nullptr); - this->MCObjectStreamer::FinishImpl(); + this->MCObjectStreamer::finishImpl(); } MCStreamer *llvm::createWasmStreamer(MCContext &Context, @@ -209,21 +209,21 @@ MCStreamer *llvm::createWasmStreamer(MCContext &Context, return S; } -void MCWasmStreamer::EmitThumbFunc(MCSymbol *Func) { +void MCWasmStreamer::emitThumbFunc(MCSymbol *Func) { llvm_unreachable("Generic Wasm doesn't support this directive"); } -void MCWasmStreamer::EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) { +void MCWasmStreamer::emitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) { llvm_unreachable("Wasm doesn't support this directive"); } -void MCWasmStreamer::EmitZerofill(MCSection *Section, MCSymbol *Symbol, +void MCWasmStreamer::emitZerofill(MCSection *Section, MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment, SMLoc Loc) { llvm_unreachable("Wasm doesn't support this directive"); } -void MCWasmStreamer::EmitTBSSSymbol(MCSection *Section, MCSymbol *Symbol, +void MCWasmStreamer::emitTBSSSymbol(MCSection *Section, MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment) { llvm_unreachable("Wasm doesn't support this directive"); } |