mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Make getOrCreateSymbolData non virtual.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207367 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
70883a252c
commit
14a1490eb8
@ -61,8 +61,6 @@ public:
|
||||
void EmitCOFFSymbolType(int Type) override;
|
||||
void EndCOFFSymbolDef() override;
|
||||
|
||||
MCSymbolData &getOrCreateSymbolData(const MCSymbol *Symbol) override;
|
||||
|
||||
void EmitELFSize(MCSymbol *Symbol, const MCExpr *Value) override;
|
||||
|
||||
void EmitLocalCommonSymbol(MCSymbol *Symbol, uint64_t Size,
|
||||
|
@ -54,6 +54,10 @@ public:
|
||||
/// Object streamers require the integrated assembler.
|
||||
bool isIntegratedAssemblerRequired() const override { return true; }
|
||||
|
||||
MCSymbolData &getOrCreateSymbolData(const MCSymbol *Symbol) {
|
||||
return getAssembler().getOrCreateSymbolData(*Symbol);
|
||||
}
|
||||
|
||||
protected:
|
||||
MCSectionData *getCurrentSectionData() const {
|
||||
return CurSectionData;
|
||||
|
@ -398,9 +398,6 @@ public:
|
||||
/// a Thumb mode function (ARM target only).
|
||||
virtual void EmitThumbFunc(MCSymbol *Func) = 0;
|
||||
|
||||
/// getOrCreateSymbolData - Get symbol data for given symbol.
|
||||
virtual MCSymbolData &getOrCreateSymbolData(const MCSymbol *Symbol);
|
||||
|
||||
/// EmitAssignment - Emit an assignment of @p Value to @p Symbol.
|
||||
///
|
||||
/// This corresponds to an assembler statement such as:
|
||||
|
@ -62,8 +62,6 @@ public:
|
||||
|
||||
/// \}
|
||||
|
||||
MCSymbolData &getOrCreateSymbolData(const MCSymbol *Symbol);
|
||||
|
||||
protected:
|
||||
const MCSymbol *CurSymbol;
|
||||
void EmitInstToData(const MCInst &Inst, const MCSubtargetInfo &STI) override;
|
||||
|
@ -560,10 +560,6 @@ void MCELFStreamer::EmitThumbFunc(MCSymbol *Func) {
|
||||
llvm_unreachable("Generic ELF doesn't support this directive");
|
||||
}
|
||||
|
||||
MCSymbolData &MCELFStreamer::getOrCreateSymbolData(const MCSymbol *Symbol) {
|
||||
return getAssembler().getOrCreateSymbolData(*Symbol);
|
||||
}
|
||||
|
||||
void MCELFStreamer::EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) {
|
||||
llvm_unreachable("ELF doesn't support this directive");
|
||||
}
|
||||
|
@ -644,11 +644,6 @@ void MCStreamer::Finish() {
|
||||
FinishImpl();
|
||||
}
|
||||
|
||||
MCSymbolData &MCStreamer::getOrCreateSymbolData(const MCSymbol *Symbol) {
|
||||
report_fatal_error("Not supported!");
|
||||
return *(static_cast<MCSymbolData*>(nullptr));
|
||||
}
|
||||
|
||||
void MCStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
|
||||
Symbol->setVariableValue(Value);
|
||||
|
||||
|
@ -239,9 +239,5 @@ void MCWinCOFFStreamer::EmitWin64EHHandlerData() {
|
||||
void MCWinCOFFStreamer::FinishImpl() {
|
||||
MCObjectStreamer::FinishImpl();
|
||||
}
|
||||
|
||||
MCSymbolData &MCWinCOFFStreamer::getOrCreateSymbolData(const MCSymbol *Symbol) {
|
||||
return getAssembler().getOrCreateSymbolData(*Symbol);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user