From 05a0e6a01c92d4934b5e87be4669124aa9b46ae9 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 1 Jul 2009 19:39:39 +0000 Subject: [PATCH] Do not print stranded metadata. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74632 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/AsmWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 361096f94da..6ca08bbc7a1 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1313,7 +1313,8 @@ void AssemblyWriter::printMDNode(const MDNode *Node, // If this node is already printed then just refer it using its Metadata // id number. if (MI != MDNodes.end()) { - Out << "metadata !" << MI->second; + if (!StandAlone) + Out << "metadata !" << MI->second; return; }