Parcourir la source

Add a newline to the end of Printable::Dump() (#5155)

This makes it friendlier in interactive debuggers. If you want to print
a value without a newline from code, you will have to be calling Print()
anyway since Dump() is private, and Print() does not add a newline.
Dana Jansens il y a 1 an
Parent
commit
489d5298f2
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      common/ostream.h

+ 1 - 0
common/ostream.h

@@ -24,6 +24,7 @@ class Printable {
   // Provides simple printing for debuggers.
   LLVM_DUMP_METHOD void Dump() const {
     static_cast<const DerivedT*>(this)->Print(llvm::errs());
+    llvm::errs() << '\n';
   }
 
   // Supports printing to llvm::raw_ostream.