mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[MustExecute] Use ListSeparator (NFC)
This commit is contained in:
parent
425d87c917
commit
537d9c3aa6
@ -8,6 +8,7 @@
|
||||
|
||||
#include "llvm/Analysis/MustExecute.h"
|
||||
#include "llvm/ADT/PostOrderIterator.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/Analysis/CFG.h"
|
||||
#include "llvm/Analysis/InstructionSimplify.h"
|
||||
#include "llvm/Analysis/LoopInfo.h"
|
||||
@ -451,13 +452,9 @@ public:
|
||||
else
|
||||
OS << " ; (mustexec in: ";
|
||||
|
||||
bool first = true;
|
||||
for (const Loop *L : Loops) {
|
||||
if (!first)
|
||||
OS << ", ";
|
||||
first = false;
|
||||
OS << L->getHeader()->getName();
|
||||
}
|
||||
ListSeparator LS;
|
||||
for (const Loop *L : Loops)
|
||||
OS << LS << L->getHeader()->getName();
|
||||
OS << ")";
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user