File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ struct RISCVSupportedExtension {
39
39
struct RISCVProfile {
40
40
StringLiteral Name;
41
41
StringLiteral MArch;
42
+
43
+ bool operator <(const RISCVProfile &RHS) const {
44
+ return StringRef (Name) < StringRef (RHS.Name );
45
+ }
42
46
};
43
47
44
48
} // end anonymous namespace
@@ -61,6 +65,10 @@ static void verifyTables() {
61
65
" Extensions are not sorted by name" );
62
66
assert (llvm::is_sorted (SupportedExperimentalExtensions) &&
63
67
" Experimental extensions are not sorted by name" );
68
+ assert (llvm::is_sorted (SupportedProfiles) &&
69
+ " Profiles are not sorted by name" );
70
+ assert (llvm::is_sorted (SupportedExperimentalProfiles) &&
71
+ " Experimental profiles are not sorted by name" );
64
72
TableChecked.store (true , std::memory_order_relaxed);
65
73
}
66
74
#endif
You can’t perform that action at this time.
0 commit comments