From 38b74bf249a59ebe5bb1664c69fa46c2a8ab4eb3 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 15 Dec 2016 23:37:38 +0000 Subject: DebugInfo: Address non-deterministic output (iterating a SmallPtrSet) in 289697 Post-commit review feedback from Adrian Prantl. Hopefully this fixes that up :) llvm-svn: 289892 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index 42503c7fe3e..e5bf33db81f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -22,6 +22,7 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/MapVector.h" +#include "llvm/ADT/SetVector.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/StringMap.h" #include "llvm/CodeGen/DIE.h" @@ -216,7 +217,9 @@ class DwarfDebug : public DebugHandlerBase { /// This is a collection of subprogram MDNodes that are processed to /// create DIEs. - SmallPtrSet ProcessedSPNodes; + SetVector, + SmallPtrSet> + ProcessedSPNodes; /// If nonnull, stores the current machine function we're processing. const MachineFunction *CurFn; @@ -550,12 +553,6 @@ public: /// A helper function to check whether the DIE for a given Scope is /// going to be null. bool isLexicalScopeDIENull(LexicalScope *Scope); - - // FIXME: Sink these functions down into DwarfFile/Dwarf*Unit. - - SmallPtrSet &getProcessedSPNodes() { - return ProcessedSPNodes; - } }; } // End of namespace llvm -- cgit v1.2.3