[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.

(cherry picked from commit 56929fdaaa)
This commit is contained in:
Hamish Knight
2020-07-13 20:42:54 -07:00
committed by Jonas Devlieghere
parent 4daeb4fa3a
commit 9b2bcd13f9
11 changed files with 45 additions and 36 deletions

View File

@@ -1073,7 +1073,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;
}