Make the Value and Type methods print a newline so it prints nicely in gdb
authorReid Spencer <rspencer@reidspencer.com>
Fri, 27 Oct 2006 18:58:54 +0000 (18:58 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 27 Oct 2006 18:58:54 +0000 (18:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31221 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 58ff971648177cfa0aaee2e67c3ce781cfd42d44..25a84f14b5b98e06e55ecc9af8c217e3a8cbae8c 100644 (file)
@@ -1357,11 +1357,11 @@ void Argument::print(std::ostream &o) const {
 
 // Value::dump - allow easy printing of  Values from the debugger.
 // Located here because so much of the needed functionality is here.
-void Value::dump() const { print(std::cerr); }
+void Value::dump() const { print(std::cerr); std::cerr << '\n'; }
 
 // Type::dump - allow easy printing of  Values from the debugger.
 // Located here because so much of the needed functionality is here.
-void Type::dump() const { print(std::cerr); }
+void Type::dump() const { print(std::cerr); std::cerr << '\n'; }
 
 //===----------------------------------------------------------------------===//
 //  CachedWriter Class Implementation