diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-25 22:46:38 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-25 22:46:38 +0000 |
commit | 738889f75269ef884c6077a792cfc2ad2eb75028 (patch) | |
tree | 3764c68665863760a0bb77ffbada44437103ffa9 /llvm/unittests/IR/MetadataTest.cpp | |
parent | cc29f4f2cbd82735bed4e322847b6b1e53d5a465 (diff) | |
download | bcm5719-llvm-738889f75269ef884c6077a792cfc2ad2eb75028.tar.gz bcm5719-llvm-738889f75269ef884c6077a792cfc2ad2eb75028.zip |
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.
llvm-svn: 230565
Diffstat (limited to 'llvm/unittests/IR/MetadataTest.cpp')
-rw-r--r-- | llvm/unittests/IR/MetadataTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/IR/MetadataTest.cpp b/llvm/unittests/IR/MetadataTest.cpp index 849616b6af3..6f2372d58cb 100644 --- a/llvm/unittests/IR/MetadataTest.cpp +++ b/llvm/unittests/IR/MetadataTest.cpp @@ -228,7 +228,7 @@ TEST_F(MDNodeTest, Print) { MDNode *Nodes[] = {N0, N1, N2}; for (auto *Node : Nodes) OS << ", <" << (void *)Node << ">"; - OS << "}\n"; + OS << "}"; } std::string Actual; |