mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 08:56:04 +00:00
[obj2yaml] Print the Relocations header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161082 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0bc1adbbc4
commit
d77ce4a8e9
@ -276,7 +276,8 @@ static llvm::raw_ostream &yamlCOFFSections(llvm::object::COFFObjectFile &Obj,
|
|||||||
Obj.getSectionContents(sect, sectionData);
|
Obj.getSectionContents(sect, sectionData);
|
||||||
Out << " SectionData: ";
|
Out << " SectionData: ";
|
||||||
yaml::writeHexStream(Out, sectionData) << endl;
|
yaml::writeHexStream(Out, sectionData) << endl;
|
||||||
|
if (iter->begin_relocations() != iter->end_relocations())
|
||||||
|
Out << " Relocations:\n";
|
||||||
for (llvm::object::relocation_iterator rIter = iter->begin_relocations();
|
for (llvm::object::relocation_iterator rIter = iter->begin_relocations();
|
||||||
rIter != iter->end_relocations(); rIter.increment(ec)) {
|
rIter != iter->end_relocations(); rIter.increment(ec)) {
|
||||||
const llvm::object::coff_relocation *reloc = Obj.getCOFFRelocation(rIter);
|
const llvm::object::coff_relocation *reloc = Obj.getCOFFRelocation(rIter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user