mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[TableGen] Use ListSeparator (NFC)
This commit is contained in:
parent
7fde0f34c6
commit
01ea295bd7
@ -205,11 +205,9 @@ void TypeSetByHwMode::writeToStream(const SetType &S, raw_ostream &OS) {
|
||||
array_pod_sort(Types.begin(), Types.end());
|
||||
|
||||
OS << '[';
|
||||
for (unsigned i = 0, e = Types.size(); i != e; ++i) {
|
||||
OS << ValueTypeByHwMode::getMVTName(Types[i]);
|
||||
if (i != e-1)
|
||||
OS << ' ';
|
||||
}
|
||||
ListSeparator LS(" ");
|
||||
for (const MVT &T : Types)
|
||||
OS << LS << ValueTypeByHwMode::getMVTName(T);
|
||||
OS << ']';
|
||||
}
|
||||
|
||||
@ -3032,9 +3030,10 @@ InferAllTypes(const StringMap<SmallVector<TreePatternNode*,1> > *InNamedTypes) {
|
||||
void TreePattern::print(raw_ostream &OS) const {
|
||||
OS << getRecord()->getName();
|
||||
if (!Args.empty()) {
|
||||
OS << "(" << Args[0];
|
||||
for (unsigned i = 1, e = Args.size(); i != e; ++i)
|
||||
OS << ", " << Args[i];
|
||||
OS << "(";
|
||||
ListSeparator LS;
|
||||
for (const std::string &Arg : Args)
|
||||
OS << LS << Arg;
|
||||
OS << ")";
|
||||
}
|
||||
OS << ": ";
|
||||
|
Loading…
Reference in New Issue
Block a user