[llvm] 195e640 - [TableGen] Fix the build
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon May 19 12:35:03 PDT 2025
Author: Kazu Hirata
Date: 2025-05-19T12:34:57-07:00
New Revision: 195e640846765402d1a622006e6a9f9fa3192955
URL: https://github.com/llvm/llvm-project/commit/195e640846765402d1a622006e6a9f9fa3192955
DIFF: https://github.com/llvm/llvm-project/commit/195e640846765402d1a622006e6a9f9fa3192955.diff
LOG: [TableGen] Fix the build
This patch fixes:
llvm/utils/TableGen/Common/CodeGenRegisters.cpp:653:57: error:
'getValues' is deprecated: Use getElements instead
[-Werror,-Wdeprecated-declarations]
Added:
Modified:
llvm/utils/TableGen/Common/CodeGenRegisters.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/Common/CodeGenRegisters.cpp b/llvm/utils/TableGen/Common/CodeGenRegisters.cpp
index 2103bc2cee026..0f9cd039b2521 100644
--- a/llvm/utils/TableGen/Common/CodeGenRegisters.cpp
+++ b/llvm/utils/TableGen/Common/CodeGenRegisters.cpp
@@ -650,7 +650,7 @@ struct TupleExpander : SetTheory::Expander {
// Take the cost list of the first register in the tuple.
const ListInit *CostList = Proto->getValueAsListInit("CostPerUse");
- SmallVector<const Init *, 2> CostPerUse(CostList->getValues());
+ SmallVector<const Init *, 2> CostPerUse(CostList->getElements());
const StringInit *AsmName = StringInit::get(RK, "");
if (!RegNames.empty()) {
More information about the llvm-commits
mailing list