[obj2yaml] Print the Relocations header.

llvm-svn: 161082
This commit is contained in:
Michael J. Spencer 2012-07-31 22:04:08 +00:00
parent b7fa3c9db0
commit 1e18841f62
1 changed files with 2 additions and 1 deletions

View File

@ -276,7 +276,8 @@ static llvm::raw_ostream &yamlCOFFSections(llvm::object::COFFObjectFile &Obj,
Obj.getSectionContents(sect, sectionData);
Out << " SectionData: ";
yaml::writeHexStream(Out, sectionData) << endl;
if (iter->begin_relocations() != iter->end_relocations())
Out << " Relocations:\n";
for (llvm::object::relocation_iterator rIter = iter->begin_relocations();
rIter != iter->end_relocations(); rIter.increment(ec)) {
const llvm::object::coff_relocation *reloc = Obj.getCOFFRelocation(rIter);