Do not print stranded metadata.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2009-07-01 19:39:39 +00:00
parent 923078c65d
commit 05a0e6a01c

View File

@ -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;
}