[TBDGen] Return a vector of symbols instead of set

A couple of clients are iterating over the result,
so switch to a vector to ensure we don't
accidentally introduce any non-determinism.
This commit is contained in:
Hamish Knight
2020-07-13 20:42:54 -07:00
parent db7fea4665
commit c354b0faa1
11 changed files with 40 additions and 36 deletions

View File

@@ -1074,7 +1074,7 @@ static bool writeLdAddCFileIfNeeded(CompilerInstance &Instance) {
llvm::raw_svector_ostream NameOS(NameBuffer);
NameOS << "ldAdd_" << Idx;
OS << "extern const char " << NameOS.str() << " __asm(\"" <<
changeToLdAdd(S.getKey()) << "\");\n";
changeToLdAdd(S) << "\");\n";
OS << "const char " << NameOS.str() << " = 0;\n";
++ Idx;
}