[llvm] [llvm-exegesis] Fix warnings (PR #120451)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 18 08:43:58 PST 2024
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/120451
This patch fixes:
lib/Target/RISCV/RISCVGenAsmMatcher.inc:239:19: error: unused
function 'MatchRegisterName' [-Werror,-Wunused-function]
lib/Target/RISCV/RISCVGenAsmMatcher.inc:568:19: error: unused
function 'MatchRegisterAltName' [-Werror,-Wunused-function]
>From 9fa910173a0942c54b2db8cdf2c2f7ffdbf53264 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Wed, 18 Dec 2024 08:40:45 -0800
Subject: [PATCH] [llvm-exegesis] Fix warnings
This patch fixes:
lib/Target/RISCV/RISCVGenAsmMatcher.inc:239:19: error: unused
function 'MatchRegisterName' [-Werror,-Wunused-function]
lib/Target/RISCV/RISCVGenAsmMatcher.inc:568:19: error: unused
function 'MatchRegisterAltName' [-Werror,-Wunused-function]
---
llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp | 3 ---
1 file changed, 3 deletions(-)
diff --git a/llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp b/llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp
index 891818b625fe14..41d361532908ca 100644
--- a/llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp
+++ b/llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp
@@ -135,9 +135,6 @@ ExegesisRISCVTarget::ExegesisRISCVTarget()
: ExegesisTarget(ArrayRef<CpuAndPfmCounters>{},
RISCV_MC::isOpcodeAvailable) {}
-#define GET_REGISTER_MATCHER
-#include "RISCVGenAsmMatcher.inc"
-
bool ExegesisRISCVTarget::matchesArch(Triple::ArchType Arch) const {
return Arch == Triple::riscv32 || Arch == Triple::riscv64;
}
More information about the llvm-commits
mailing list