[clang] [llvm] [TargetParser][ARM][NFC] Make string tables reloc-free (PR #206937)
Michael Platings via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 1 06:03:00 PDT 2026
================
@@ -787,31 +788,31 @@ TEST(TargetParserTest, ARMFPURestriction) {
}
TEST(TargetParserTest, ARMExtensionFeatures) {
- std::map<uint64_t, std::vector<StringRef>> Extensions;
+ std::vector<std::tuple<ARM::ArchExtKind, StringRef, StringRef>> Extensions;
- for (auto &Ext : ARM::ARCHExtNames) {
- if (!Ext.Feature.empty() && !Ext.NegFeature.empty())
- Extensions[Ext.ID] = {Ext.Feature, Ext.NegFeature};
+ for (auto &Ext : ARM::getArchExts()) {
+ if (!Ext.name(1).empty() && !Ext.name(2).empty())
----------------
mplatings wrote:
`name(1)` is a lot less clear than `Feature`
https://github.com/llvm/llvm-project/pull/206937
More information about the cfe-commits
mailing list