mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Move EmitDwarfAdvanceLineAddr and EmitDwarfAdvanceFrameAddr to the obj streamer.
This lets us delete the MCAsmStreamer implementation. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208570 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7624b86cfc
commit
64d3ae0c39
@ -118,9 +118,9 @@ public:
|
||||
StringRef FileName) override;
|
||||
void EmitDwarfAdvanceLineAddr(int64_t LineDelta, const MCSymbol *LastLabel,
|
||||
const MCSymbol *Label,
|
||||
unsigned PointerSize) override;
|
||||
unsigned PointerSize);
|
||||
void EmitDwarfAdvanceFrameAddr(const MCSymbol *LastLabel,
|
||||
const MCSymbol *Label) override;
|
||||
const MCSymbol *Label);
|
||||
void EmitGPRel32Value(const MCExpr *Value) override;
|
||||
void EmitGPRel64Value(const MCExpr *Value) override;
|
||||
void EmitFill(uint64_t NumBytes, uint8_t FillValue) override;
|
||||
|
@ -650,14 +650,6 @@ public:
|
||||
unsigned Isa, unsigned Discriminator,
|
||||
StringRef FileName);
|
||||
|
||||
virtual void EmitDwarfAdvanceLineAddr(int64_t LineDelta,
|
||||
const MCSymbol *LastLabel,
|
||||
const MCSymbol *Label,
|
||||
unsigned PointerSize) = 0;
|
||||
|
||||
virtual void EmitDwarfAdvanceFrameAddr(const MCSymbol *LastLabel,
|
||||
const MCSymbol *Label) {}
|
||||
|
||||
virtual MCSymbol *getDwarfLineTableSymbol(unsigned CUID);
|
||||
|
||||
void EmitDwarfSetLineAddr(int64_t LineDelta, const MCSymbol *Label,
|
||||
|
@ -710,9 +710,6 @@ namespace {
|
||||
bool EmitValueToOffset(const MCExpr *Offset,
|
||||
unsigned char Value) override { return false; }
|
||||
void EmitFileDirective(StringRef Filename) override {}
|
||||
void EmitDwarfAdvanceLineAddr(int64_t LineDelta, const MCSymbol *LastLabel,
|
||||
const MCSymbol *Label,
|
||||
unsigned PointerSize) override {}
|
||||
void FinishImpl() override {}
|
||||
void EmitCFIEndProcImpl(MCDwarfFrameInfo &Frame) override {
|
||||
RecordProcEnd(Frame);
|
||||
|
@ -131,12 +131,6 @@ public:
|
||||
|
||||
void EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) override;
|
||||
void EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) override;
|
||||
void EmitDwarfAdvanceLineAddr(int64_t LineDelta, const MCSymbol *LastLabel,
|
||||
const MCSymbol *Label,
|
||||
unsigned PointerSize) override;
|
||||
void EmitDwarfAdvanceFrameAddr(const MCSymbol *LastLabel,
|
||||
const MCSymbol *Label) override;
|
||||
|
||||
bool EmitSymbolAttribute(MCSymbol *Symbol, MCSymbolAttr Attribute) override;
|
||||
|
||||
void EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) override;
|
||||
@ -416,22 +410,6 @@ void MCAsmStreamer::EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) {
|
||||
EmitEOL();
|
||||
}
|
||||
|
||||
void MCAsmStreamer::EmitDwarfAdvanceLineAddr(int64_t LineDelta,
|
||||
const MCSymbol *LastLabel,
|
||||
const MCSymbol *Label,
|
||||
unsigned PointerSize) {
|
||||
EmitDwarfSetLineAddr(LineDelta, Label, PointerSize);
|
||||
}
|
||||
|
||||
void MCAsmStreamer::EmitDwarfAdvanceFrameAddr(const MCSymbol *LastLabel,
|
||||
const MCSymbol *Label) {
|
||||
EmitIntValue(dwarf::DW_CFA_advance_loc4, 1);
|
||||
const MCExpr *AddrDelta = BuildSymbolDiff(getContext(), Label, LastLabel);
|
||||
AddrDelta = ForceExpAbs(AddrDelta);
|
||||
EmitValue(AddrDelta, 4);
|
||||
}
|
||||
|
||||
|
||||
bool MCAsmStreamer::EmitSymbolAttribute(MCSymbol *Symbol,
|
||||
MCSymbolAttr Attribute) {
|
||||
switch (Attribute) {
|
||||
|
@ -41,11 +41,6 @@ namespace {
|
||||
|
||||
void EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) override {}
|
||||
void EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) override {}
|
||||
void EmitDwarfAdvanceLineAddr(int64_t LineDelta,
|
||||
const MCSymbol *LastLabel,
|
||||
const MCSymbol *Label,
|
||||
unsigned PointerSize) override {}
|
||||
|
||||
bool EmitSymbolAttribute(MCSymbol *Symbol,
|
||||
MCSymbolAttr Attribute) override {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user