summaryrefslogtreecommitdiff
path: root/include/llvm/Object
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Object')
-rw-r--r--include/llvm/Object/ObjectFile.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Object/ObjectFile.h b/include/llvm/Object/ObjectFile.h
index a3301dbe43..b01eb00023 100644
--- a/include/llvm/Object/ObjectFile.h
+++ b/include/llvm/Object/ObjectFile.h
@@ -112,6 +112,10 @@ public:
relocation_iterator relocation_begin() const;
relocation_iterator relocation_end() const;
+ typedef iterator_range<relocation_iterator> relocation_iterator_range;
+ relocation_iterator_range relocations() const {
+ return relocation_iterator_range(relocation_begin(), relocation_end());
+ }
section_iterator getRelocatedSection() const;
DataRefImpl getRawDataRefImpl() const;