[llvm] r270742 - [llvm-pdbdump] Dump raw stream contents as binary block.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Wed May 25 11:32:08 PDT 2016
Author: zturner
Date: Wed May 25 13:32:07 2016
New Revision: 270742
URL: http://llvm.org/viewvc/llvm-project?rev=270742&view=rev
Log:
[llvm-pdbdump] Dump raw stream contents as binary block.
Dumping it as ASCII makes it fairly useless.
Modified:
llvm/trunk/tools/llvm-pdbdump/llvm-pdbdump.cpp
Modified: llvm/trunk/tools/llvm-pdbdump/llvm-pdbdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbdump/llvm-pdbdump.cpp?rev=270742&r1=270741&r2=270742&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbdump/llvm-pdbdump.cpp (original)
+++ llvm/trunk/tools/llvm-pdbdump/llvm-pdbdump.cpp Wed May 25 13:32:07 2016
@@ -350,8 +350,9 @@ static Error dumpStreamData(ScopedPrinte
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();
}
More information about the llvm-commits
mailing list