diff options
author | Devang Patel <dpatel@apple.com> | 2009-07-01 19:39:39 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-07-01 19:39:39 +0000 |
commit | 05a0e6a01c92d4934b5e87be4669124aa9b46ae9 (patch) | |
tree | 51e8e393204b8bfe968fef2a6aa0d62f8b32018a /lib/VMCore/AsmWriter.cpp | |
parent | 923078c65d5a37a4f135705300c9feea49487de5 (diff) | |
download | external_llvm-05a0e6a01c92d4934b5e87be4669124aa9b46ae9.zip external_llvm-05a0e6a01c92d4934b5e87be4669124aa9b46ae9.tar.gz external_llvm-05a0e6a01c92d4934b5e87be4669124aa9b46ae9.tar.bz2 |
Do not print stranded metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 361096f..6ca08bb 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; } |