[llvm-pdbdump] Dump raw stream contents as binary block.

Dumping it as ASCII makes it fairly useless.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270742 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Zachary Turner 2016-05-25 18:32:07 +00:00
parent 2b7ac01da2
commit f50e8cdfbd

View File

@ -350,8 +350,9 @@ static Error dumpStreamData(ScopedPrinter &P, PDBFile &File) {
R.bytesRemaining(), static_cast<uint32_t>(File.getBlockSize()));
if (auto EC = R.getArrayRef(Data, BytesToReadInBlock))
return EC;
outs() << StringRef(reinterpret_cast<const char *>(Data.begin()),
Data.size());
P.printBinaryBlock(
"Data",
StringRef(reinterpret_cast<const char *>(Data.begin()), Data.size()));
}
return Error::success();
}