Skip to content

Commit 55db6ec

Browse files
committed
[BasicAA] Move newline to dump from printer
1 parent 99ea2c4 commit 55db6ec

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

llvm/include/llvm/Analysis/BasicAliasAnalysis.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,15 @@ class BasicAAResult : public AAResultBase<BasicAAResult> {
127127
return !operator==(Other);
128128
}
129129

130-
void dump() const { print(dbgs()); }
130+
void dump() const {
131+
print(dbgs());
132+
dbgs() << "\n";
133+
}
131134
void print(raw_ostream &OS) const {
132135
OS << "(V=" << V->getName()
133136
<< ", zextbits=" << ZExtBits
134137
<< ", sextbits=" << SExtBits
135-
<< ", scale=" << Scale << ")\n";
138+
<< ", scale=" << Scale << ")";
136139
}
137140
};
138141

@@ -148,7 +151,10 @@ class BasicAAResult : public AAResultBase<BasicAAResult> {
148151
// Is GEP index scale compile-time constant.
149152
bool HasCompileTimeConstantScale;
150153

151-
void dump() const { print(dbgs()); }
154+
void dump() const {
155+
print(dbgs());
156+
dbgs() << "\n";
157+
}
152158
void print(raw_ostream &OS) const {
153159
OS << "(DecomposedGEP Base=" << Base->getName()
154160
<< ", Offset=" << Offset
@@ -159,7 +165,7 @@ class BasicAAResult : public AAResultBase<BasicAAResult> {
159165
VarIndices[i].print(OS);
160166
}
161167
OS << "], HasCompileTimeConstantScale=" << HasCompileTimeConstantScale
162-
<< ")\n";
168+
<< ")";
163169
}
164170
};
165171

0 commit comments

Comments
 (0)