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
This commit is contained in:
Devang Patel 2009-07-22 18:10:23 +00:00
parent 6dba7669e0
commit 66a9d6702f

View File

@ -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 << '"';