When calling print directly on a global (eg from the debugger) it
authorDuncan Sands <baldrick@free.fr>
Wed, 12 Sep 2012 09:55:51 +0000 (09:55 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 12 Sep 2012 09:55:51 +0000 (09:55 +0000)
commit79da6ef84ff0caae6ae904840ec5bc975b6de4e7
treeb2bd71519ee0bf9e12a229c6dfa69b17416a8633
parentdba5de5246f84fe50aef79e464e5aecdf5607ab4
When calling print directly on a global (eg from the debugger) it
was printing a newline that doesn't occur when printing other kinds
of LLVM values.  Move the printing of that newline elsewhere, making
globals print the same as other values while leaving the output when
printing an entire module unchanged.  Patch by Saša Tomić.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163693 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/AsmWriter.cpp