From 091a55c16ad4e87aa67a3c003fade1a226698734 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Storsj=C3=B6?= Date: Wed, 18 May 2022 14:05:08 +0300 Subject: [PATCH] [MC] [Win64EH] Remove an unused parameter to ARM64EmitUnwindCode. NFC. Differential Revision: https://reviews.llvm.org/D125878 --- llvm/lib/MC/MCWin64EH.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/MC/MCWin64EH.cpp b/llvm/lib/MC/MCWin64EH.cpp index b0e8ecd..bb33b31 100644 --- a/llvm/lib/MC/MCWin64EH.cpp +++ b/llvm/lib/MC/MCWin64EH.cpp @@ -351,7 +351,7 @@ static uint32_t ARM64CountOfUnwindCodes(ArrayRef Insns) { // Unwind opcode encodings and restrictions are documented at // https://docs.microsoft.com/en-us/cpp/build/arm64-exception-handling -static void ARM64EmitUnwindCode(MCStreamer &streamer, const MCSymbol *begin, +static void ARM64EmitUnwindCode(MCStreamer &streamer, const WinEH::Instruction &inst) { uint8_t b, reg; switch (static_cast(inst.Operation)) { @@ -1070,14 +1070,14 @@ static void ARM64EmitUnwindInfo(MCStreamer &streamer, WinEH::FrameInfo *info, for (uint8_t c = 0; c < numInst; ++c) { WinEH::Instruction inst = info->Instructions.back(); info->Instructions.pop_back(); - ARM64EmitUnwindCode(streamer, info->Begin, inst); + ARM64EmitUnwindCode(streamer, inst); } // Emit epilog unwind instructions for (auto &I : info->EpilogMap) { auto &EpilogInstrs = I.second; for (const WinEH::Instruction &inst : EpilogInstrs) - ARM64EmitUnwindCode(streamer, info->Begin, inst); + ARM64EmitUnwindCode(streamer, inst); } int32_t BytesMod = CodeWords * 4 - TotalCodeBytes; -- 2.7.4