[llvm] 55db6ec - [BasicAA] Move newline to dump from printer
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 3 14:36:00 PST 2020
Author: Philip Reames
Date: 2020-12-03T14:35:43-08:00
New Revision: 55db6ec1cc20d32ad179e0059aafcc545125fca6
URL: https://github.com/llvm/llvm-project/commit/55db6ec1cc20d32ad179e0059aafcc545125fca6
DIFF: https://github.com/llvm/llvm-project/commit/55db6ec1cc20d32ad179e0059aafcc545125fca6.diff
LOG: [BasicAA] Move newline to dump from printer
Added:
Modified:
llvm/include/llvm/Analysis/BasicAliasAnalysis.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/BasicAliasAnalysis.h b/llvm/include/llvm/Analysis/BasicAliasAnalysis.h
index 4a149387eb74..d9a174951695 100644
--- a/llvm/include/llvm/Analysis/BasicAliasAnalysis.h
+++ b/llvm/include/llvm/Analysis/BasicAliasAnalysis.h
@@ -127,12 +127,15 @@ class BasicAAResult : public AAResultBase<BasicAAResult> {
return !operator==(Other);
}
- void dump() const { print(dbgs()); }
+ void dump() const {
+ print(dbgs());
+ dbgs() << "\n";
+ }
void print(raw_ostream &OS) const {
OS << "(V=" << V->getName()
<< ", zextbits=" << ZExtBits
<< ", sextbits=" << SExtBits
- << ", scale=" << Scale << ")\n";
+ << ", scale=" << Scale << ")";
}
};
@@ -148,7 +151,10 @@ class BasicAAResult : public AAResultBase<BasicAAResult> {
// Is GEP index scale compile-time constant.
bool HasCompileTimeConstantScale;
- void dump() const { print(dbgs()); }
+ void dump() const {
+ print(dbgs());
+ dbgs() << "\n";
+ }
void print(raw_ostream &OS) const {
OS << "(DecomposedGEP Base=" << Base->getName()
<< ", Offset=" << Offset
@@ -159,7 +165,7 @@ class BasicAAResult : public AAResultBase<BasicAAResult> {
VarIndices[i].print(OS);
}
OS << "], HasCompileTimeConstantScale=" << HasCompileTimeConstantScale
- << ")\n";
+ << ")";
}
};
More information about the llvm-commits
mailing list