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/lib/IR | |
| 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/lib/IR')
| -rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index dccbfe47dd2..de0e614c876 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -3000,6 +3000,7 @@ static void WriteMDNodeComment(const MDNode *Node, void AssemblyWriter::writeMDNode(unsigned Slot, const MDNode *Node) { Out << '!' << Slot << " = "; printMDNodeBody(Node); + Out << "\n"; } void AssemblyWriter::writeAllMDNodes() { @@ -3017,7 +3018,6 @@ void AssemblyWriter::writeAllMDNodes() { void AssemblyWriter::printMDNodeBody(const MDNode *Node) { WriteMDNodeBodyInternal(Out, Node, &TypePrinter, &Machine, TheModule); WriteMDNodeComment(Node, Out); - Out << "\n"; } void AssemblyWriter::writeAllAttributeGroups() { |

