[all-commits] [llvm/llvm-project] 0c2b43: [X86] Fix MCSymbolizer interface for X86Disassembler
maksfb via All-commits
all-commits at lists.llvm.org
Mon Mar 7 10:28:19 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0c2b43ab8cb1067dd1c7899094b824890803a7d2
https://github.com/llvm/llvm-project/commit/0c2b43ab8cb1067dd1c7899094b824890803a7d2
Author: Maksim Panchenko <maks at fb.com>
Date: 2022-03-07 (Mon, 07 Mar 2022)
Changed paths:
M llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp
A llvm/unittests/MC/X86/CMakeLists.txt
A llvm/unittests/MC/X86/X86MCDisassemblerTest.cpp
Log Message:
-----------
[X86] Fix MCSymbolizer interface for X86Disassembler
Fix a number of issues with MCSymbolizer::tryAddingSymbolicOperand()
in X86Disassembler:
* Pass instruction size instead of immediate size.
* Correctly adjust the value of PC-relative operands.
* Set operand offset to zero when the operand is specified
implicitly.
Reviewed By: Amir, skan
Differential Revision: https://reviews.llvm.org/D121065
More information about the All-commits
mailing list