1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-21 18:22:53 +01:00

[MustExecute] Use ListSeparator (NFC)

This commit is contained in:
Kazu Hirata 2021-01-28 22:21:16 -08:00
parent 425d87c917
commit 537d9c3aa6

View File

@ -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 << ")";
}
};