summaryrefslogtreecommitdiffstats
path: root/llvm/utils/obj2yaml/coff2yaml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/obj2yaml/coff2yaml.cpp')
-rw-r--r--llvm/utils/obj2yaml/coff2yaml.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/obj2yaml/coff2yaml.cpp b/llvm/utils/obj2yaml/coff2yaml.cpp
index 2dbd53117a5..c9a71591ef7 100644
--- a/llvm/utils/obj2yaml/coff2yaml.cpp
+++ b/llvm/utils/obj2yaml/coff2yaml.cpp
@@ -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);
OpenPOWER on IntegriCloud