Skip to content

Commit 7ca4128

Browse files
authored
[AArch64] Generalize the instruction size checking in AsmPrinter (llvm#110108)
Most of PAuth-related code counts the instructions being inserted and asserts that no more bytes are emitted than the size returned by the getInstSizeInBytes(MI) method. This check seems useful not only for PAuth-related instructions. Also, reimplementing it globally in AArch64AsmPrinter makes it more robust and simplifies further refactoring of PAuth-related code.
1 parent dc98482 commit 7ca4128

File tree

2 files changed

+46
-78
lines changed

2 files changed

+46
-78
lines changed

0 commit comments

Comments
 (0)