mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
MC: Clean up MCExpr naming. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238634 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -171,10 +171,10 @@ static void EmitLabelDiff(MCStreamer &Streamer,
|
||||
unsigned int Size = 4) {
|
||||
MCSymbolRefExpr::VariantKind Variant = MCSymbolRefExpr::VK_None;
|
||||
MCContext &Context = Streamer.getContext();
|
||||
const MCExpr *FromRef = MCSymbolRefExpr::Create(From, Variant, Context),
|
||||
*ToRef = MCSymbolRefExpr::Create(To, Variant, Context);
|
||||
const MCExpr *FromRef = MCSymbolRefExpr::create(From, Variant, Context),
|
||||
*ToRef = MCSymbolRefExpr::create(To, Variant, Context);
|
||||
const MCExpr *AddrDelta =
|
||||
MCBinaryExpr::Create(MCBinaryExpr::Sub, ToRef, FromRef, Context);
|
||||
MCBinaryExpr::create(MCBinaryExpr::Sub, ToRef, FromRef, Context);
|
||||
Streamer.EmitValue(AddrDelta, Size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user