Skip to content

Commit 9191878

Browse files
author
Kai Luo
authored
[PowerPC] Use SmallSetVector to enable deterministic build (llvm#89875)
This is to address the issue in https://lab.llvm.org/buildbot/#/builders/54. `SmallSetVector` interfaces as set and can be iterated in a deterministic order.
1 parent 1d77eb4 commit 9191878

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "PPCTargetStreamer.h"
2828
#include "TargetInfo/PowerPCTargetInfo.h"
2929
#include "llvm/ADT/MapVector.h"
30-
#include "llvm/ADT/SmallPtrSet.h"
30+
#include "llvm/ADT/SetVector.h"
3131
#include "llvm/ADT/Statistic.h"
3232
#include "llvm/ADT/StringExtras.h"
3333
#include "llvm/ADT/StringRef.h"
@@ -242,7 +242,7 @@ class PPCAIXAsmPrinter : public PPCAsmPrinter {
242242
private:
243243
/// Symbols lowered from ExternalSymbolSDNodes, we will need to emit extern
244244
/// linkage for them in AIX.
245-
SmallPtrSet<MCSymbol *, 8> ExtSymSDNodeSymbols;
245+
SmallSetVector<MCSymbol *, 8> ExtSymSDNodeSymbols;
246246

247247
/// A format indicator and unique trailing identifier to form part of the
248248
/// sinit/sterm function names.

0 commit comments

Comments
 (0)