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 {
3939struct RISCVProfile {
4040 StringLiteral Name;
4141 StringLiteral MArch;
42+
43+ bool operator <(const RISCVProfile &RHS) const {
44+ return StringRef (Name) < StringRef (RHS.Name );
45+ }
4246};
4347
4448} // end anonymous namespace
@@ -61,6 +65,10 @@ static void verifyTables() {
6165 " Extensions are not sorted by name" );
6266 assert (llvm::is_sorted (SupportedExperimentalExtensions) &&
6367 " 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" );
6472 TableChecked.store (true , std::memory_order_relaxed);
6573 }
6674#endif
You can’t perform that action at this time.
0 commit comments