[llvm] e1872c5 - [RISCV] Make RISCVOperand struct final.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 29 18:47:03 PST 2023
Author: Craig Topper
Date: 2023-01-29T18:46:38-08:00
New Revision: e1872c587373f32905e21bf8df200aa183165e80
URL: https://github.com/llvm/llvm-project/commit/e1872c587373f32905e21bf8df200aa183165e80
DIFF: https://github.com/llvm/llvm-project/commit/e1872c587373f32905e21bf8df200aa183165e80.diff
LOG: [RISCV] Make RISCVOperand struct final.
Allows the compiler to de-virtualize some calls.
Added:
Modified:
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
index 0c8b551879e24..54358863fdbbb 100644
--- a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+++ b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
@@ -269,7 +269,7 @@ class RISCVAsmParser : public MCTargetAsmParser {
/// RISCVOperand - Instances of this class represent a parsed machine
/// instruction
-struct RISCVOperand : public MCParsedAsmOperand {
+struct RISCVOperand final : public MCParsedAsmOperand {
enum class KindTy {
Token,
More information about the llvm-commits
mailing list