diff options
Diffstat (limited to 'include/llvm/Object/ObjectFile.h')
-rw-r--r-- | include/llvm/Object/ObjectFile.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Object/ObjectFile.h b/include/llvm/Object/ObjectFile.h index d39a9423e0..a3301dbe43 100644 --- a/include/llvm/Object/ObjectFile.h +++ b/include/llvm/Object/ObjectFile.h @@ -289,6 +289,11 @@ public: virtual section_iterator section_begin() const = 0; virtual section_iterator section_end() const = 0; + typedef iterator_range<section_iterator> section_iterator_range; + section_iterator_range sections() const { + return section_iterator_range(section_begin(), section_end()); + } + virtual library_iterator needed_library_begin() const = 0; virtual library_iterator needed_library_end() const = 0; |