mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
committed by
Jonas Devlieghere
parent
4daeb4fa3a
commit
9b2bcd13f9
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user