[codeview] Don't dump type stream bytes unless asked to

llvm-svn: 268271
This commit is contained in:
Reid Kleckner 2016-05-02 18:10:00 +00:00
parent b56d904433
commit b2bd28128d
1 changed files with 2 additions and 1 deletions

View File

@ -1982,7 +1982,8 @@ void COFFDumper::printCodeViewTypeSection(StringRef SectionName,
W.printNumber("Section", SectionName, Obj->getSectionID(Section));
StringRef Data;
error(Section.getContents(Data));
W.printBinaryBlock("Data", Data);
if (opts::CodeViewSubsectionBytes)
W.printBinaryBlock("Data", Data);
unsigned Magic = *reinterpret_cast<const ulittle32_t *>(Data.data());
W.printHex("Magic", Magic);