mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Implement MCAsmStreamer::EmitDwarfAdvanceFrameAddr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130585 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -121,16 +121,6 @@ void MCObjectStreamer::EmitLabel(MCSymbol *Symbol) {
|
||||
SD.setOffset(F->getContents().size());
|
||||
}
|
||||
|
||||
static const MCExpr *ForceExpAbs(MCObjectStreamer *Streamer,
|
||||
MCContext &Context, const MCExpr* Expr) {
|
||||
if (Context.getAsmInfo().hasAggressiveSymbolFolding())
|
||||
return Expr;
|
||||
|
||||
MCSymbol *ABS = Context.CreateTempSymbol();
|
||||
Streamer->EmitAssignment(ABS, Expr);
|
||||
return MCSymbolRefExpr::Create(ABS, Context);
|
||||
}
|
||||
|
||||
void MCObjectStreamer::EmitULEB128Value(const MCExpr *Value) {
|
||||
int64_t IntValue;
|
||||
if (Value->EvaluateAsAbsolute(IntValue, getAssembler())) {
|
||||
@@ -205,18 +195,6 @@ void MCObjectStreamer::EmitInstToFragment(const MCInst &Inst) {
|
||||
IF->getCode().append(Code.begin(), Code.end());
|
||||
}
|
||||
|
||||
static const MCExpr *BuildSymbolDiff(MCContext &Context,
|
||||
const MCSymbol *A, const MCSymbol *B) {
|
||||
MCSymbolRefExpr::VariantKind Variant = MCSymbolRefExpr::VK_None;
|
||||
const MCExpr *ARef =
|
||||
MCSymbolRefExpr::Create(A, Variant, Context);
|
||||
const MCExpr *BRef =
|
||||
MCSymbolRefExpr::Create(B, Variant, Context);
|
||||
const MCExpr *AddrDelta =
|
||||
MCBinaryExpr::Create(MCBinaryExpr::Sub, ARef, BRef, Context);
|
||||
return AddrDelta;
|
||||
}
|
||||
|
||||
void MCObjectStreamer::EmitDwarfAdvanceLineAddr(int64_t LineDelta,
|
||||
const MCSymbol *LastLabel,
|
||||
const MCSymbol *Label) {
|
||||
|
||||
Reference in New Issue
Block a user