Append a newline when dumping a Value.

This is more consistent with other dump methods. Otherwise successive Value dumps are concatenated in same line, hurting readability.

PiperOrigin-RevId: 271669846
This commit is contained in:
Yanan Cao 2019-09-27 16:20:04 -07:00 committed by A. Unique TensorFlower
parent b569c969f0
commit 5f8dff936b
1 changed files with 4 additions and 1 deletions

View File

@ -1746,7 +1746,10 @@ void Value::print(raw_ostream &os) {
}
}
void Value::dump() { print(llvm::errs()); }
void Value::dump() {
print(llvm::errs());
llvm::errs() << "\n";
}
void Operation::print(raw_ostream &os) {
// Handle top-level operations.