1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

Minor format tweak to deref analysis printer

This commit is contained in:
Philip Reames 2021-03-22 18:44:06 -07:00
parent e33ed822d1
commit 08288bc355

View File

@ -70,12 +70,13 @@ bool MemDerefPrinter::runOnFunction(Function &F) {
void MemDerefPrinter::print(raw_ostream &OS, const Module *M) const {
OS << "The following are dereferenceable:\n";
for (Value *V: Deref) {
OS << " ";
V->print(OS);
if (DerefAndAligned.count(V))
OS << "\t(aligned)";
else
OS << "\t(unaligned)";
OS << "\n\n";
OS << "\n";
}
}
@ -101,12 +102,13 @@ PreservedAnalyses MemDerefPrinterPass::run(Function &F,
OS << "The following are dereferenceable:\n";
for (Value *V : Deref) {
OS << " ";
V->print(OS);
if (DerefAndAligned.count(V))
OS << "\t(aligned)";
else
OS << "\t(unaligned)";
OS << "\n\n";
OS << "\n";
}
return PreservedAnalyses::all();
}