@@ -1229,7 +1229,7 @@ template <class ELFT> void ObjFile<ELFT>::importCmseSymbols() {
12291229 continue ;
12301230 }
12311231
1232- if (ctx.symtab ->cmseImportLib .count (sym->getName ())) {
1232+ if (ctx.symtab ->cmseImportLib .contains (sym->getName ())) {
12331233 Err (ctx) << " CMSE symbol '" << sym->getName ()
12341234 << " ' is multiply defined in import library '" << this << " '" ;
12351235 continue ;
@@ -1343,7 +1343,7 @@ ArmCmseSGSection::ArmCmseSGSection(Ctx &ctx)
13431343 addSGVeneer (cast<Defined>(entryFunc.acleSeSym ),
13441344 cast<Defined>(entryFunc.sym ));
13451345 for (auto &[_, sym] : ctx.symtab ->cmseImportLib ) {
1346- if (!ctx.symtab ->inCMSEOutImpLib .count (sym->getName ()))
1346+ if (!ctx.symtab ->inCMSEOutImpLib .contains (sym->getName ()))
13471347 Warn (ctx)
13481348 << " entry function '" << sym->getName ()
13491349 << " ' from CMSE import library is not present in secure application" ;
@@ -1352,7 +1352,7 @@ ArmCmseSGSection::ArmCmseSGSection(Ctx &ctx)
13521352 if (!ctx.symtab ->cmseImportLib .empty () && ctx.arg .cmseOutputLib .empty ()) {
13531353 for (auto &[_, entryFunc] : ctx.symtab ->cmseSymMap ) {
13541354 Symbol *sym = entryFunc.sym ;
1355- if (!ctx.symtab ->inCMSEOutImpLib .count (sym->getName ()))
1355+ if (!ctx.symtab ->inCMSEOutImpLib .contains (sym->getName ()))
13561356 Warn (ctx) << " new entry function '" << sym->getName ()
13571357 << " ' introduced but no output import library specified" ;
13581358 }
@@ -1361,7 +1361,7 @@ ArmCmseSGSection::ArmCmseSGSection(Ctx &ctx)
13611361
13621362void ArmCmseSGSection::addSGVeneer (Symbol *acleSeSym, Symbol *sym) {
13631363 entries.emplace_back (acleSeSym, sym);
1364- if (ctx.symtab ->cmseImportLib .count (sym->getName ()))
1364+ if (ctx.symtab ->cmseImportLib .contains (sym->getName ()))
13651365 ctx.symtab ->inCMSEOutImpLib [sym->getName ()] = true ;
13661366 // Symbol addresses different, nothing to do.
13671367 if (acleSeSym->file != sym->file ||
0 commit comments