IR: Drop newline from AssemblyWriter::printMDNodeBody()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 25 Feb 2015 22:46:38 +0000 (22:46 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 25 Feb 2015 22:46:38 +0000 (22:46 +0000)
commit344ea291484f6888cd31ba82bd7b8393ee006463
treea5b86213994fc1641af45105d53d3784da47a134
parent8e3ef7f18666102f2afa147967980bff36b93957
IR: Drop newline from AssemblyWriter::printMDNodeBody()

Remove a newline from `AssemblyWriter::printMDNodeBody()`, and add one
to `AssemblyWriter::writeMDNode()`.  NFCI for assembly output.

However, this drops an inconsistent newline from `Metadata::print()`
when `this` is an `MDNode`.  Now the newline added by `Metadata::dump()`
won't look so verbose.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230565 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/AsmWriter.cpp
unittests/IR/MetadataTest.cpp