[llvm] 0134492 - Minor format tweak to deref analysis printer
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 22 18:44:26 PDT 2021
Author: Philip Reames
Date: 2021-03-22T18:44:18-07:00
New Revision: 013449299c456278cfba5342e630dff9c052253e
URL: https://github.com/llvm/llvm-project/commit/013449299c456278cfba5342e630dff9c052253e
DIFF: https://github.com/llvm/llvm-project/commit/013449299c456278cfba5342e630dff9c052253e.diff
LOG: Minor format tweak to deref analysis printer
Added:
Modified:
llvm/lib/Analysis/MemDerefPrinter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/MemDerefPrinter.cpp b/llvm/lib/Analysis/MemDerefPrinter.cpp
index 0078ceacbad2..1b16e1a9bcb2 100644
--- a/llvm/lib/Analysis/MemDerefPrinter.cpp
+++ b/llvm/lib/Analysis/MemDerefPrinter.cpp
@@ -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();
}
More information about the llvm-commits
mailing list