aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-07-31 22:04:08 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-07-31 22:04:08 +0000
commitd77ce4a8e92b4927898ed5f09a4751e23f5232fb (patch)
tree8c42e97994024afe3f334e7ea263e69a537edb32 /utils
parent0bc1adbbc4fdc6d85a671ed70a1bbd345dba445d (diff)
downloadexternal_llvm-d77ce4a8e92b4927898ed5f09a4751e23f5232fb.zip
external_llvm-d77ce4a8e92b4927898ed5f09a4751e23f5232fb.tar.gz
external_llvm-d77ce4a8e92b4927898ed5f09a4751e23f5232fb.tar.bz2
[obj2yaml] Print the Relocations header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/obj2yaml/coff2yaml.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/obj2yaml/coff2yaml.cpp b/utils/obj2yaml/coff2yaml.cpp
index 2dbd531..c9a7159 100644
--- a/utils/obj2yaml/coff2yaml.cpp
+++ b/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);