[llvm] 5afd208 - [riscv] Mark function as used to avoid unused warning.
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 18:59:13 PDT 2022
Author: Weverything
Date: 2022-05-03T18:51:23-07:00
New Revision: 5afd20806d4e28e5d8a8f968f199a663021bbb5b
URL: https://github.com/llvm/llvm-project/commit/5afd20806d4e28e5d8a8f968f199a663021bbb5b
DIFF: https://github.com/llvm/llvm-project/commit/5afd20806d4e28e5d8a8f968f199a663021bbb5b.diff
LOG: [riscv] Mark function as used to avoid unused warning.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
index fa43dae022e89..f08dbeeb8d019 100644
--- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -420,6 +420,7 @@ class VSETVLIInfo {
};
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+LLVM_ATTRIBUTE_USED
inline raw_ostream &operator<<(raw_ostream &OS, const VSETVLIInfo &V) {
V.print(OS);
return OS;
More information about the llvm-commits
mailing list