aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-07-22 18:10:23 +0000
committerDevang Patel <dpatel@apple.com>2009-07-22 18:10:23 +0000
commit5f5b4f816cfc6c029d2916e0e347342e1c01c6e3 (patch)
tree5adb16cbd840ed71af9dcf2fdfa690c2aabe9b51 /lib
parent5ffde1e915dbd3a9aada8ca143ea6566f158e3b1 (diff)
downloadexternal_llvm-5f5b4f816cfc6c029d2916e0e347342e1c01c6e3.zip
external_llvm-5f5b4f816cfc6c029d2916e0e347342e1c01c6e3.tar.gz
external_llvm-5f5b4f816cfc6c029d2916e0e347342e1c01c6e3.tar.bz2
Do not print "metadata" twice while printing MDString.
This fixes unittest failure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76764 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/AsmWriter.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 17d0478..6e84af3 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -1133,8 +1133,6 @@ static void WriteAsOperandInternal(raw_ostream &Out, const Value *V,
}
if (const MDString *MDS = dyn_cast<MDString>(V)) {
- TypePrinter.print(MDS->getType(), Out);
- Out << ' ';
Out << "!\"";
PrintEscapedString(MDS->begin(), MDS->size(), Out);
Out << '"';