aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ExecutionEngine/ObjectImage.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ExecutionEngine/ObjectImage.h')
-rw-r--r--include/llvm/ExecutionEngine/ObjectImage.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/ObjectImage.h b/include/llvm/ExecutionEngine/ObjectImage.h
index 1a13647..1fcedd8 100644
--- a/include/llvm/ExecutionEngine/ObjectImage.h
+++ b/include/llvm/ExecutionEngine/ObjectImage.h
@@ -36,9 +36,17 @@ public:
virtual object::symbol_iterator begin_symbols() const = 0;
virtual object::symbol_iterator end_symbols() const = 0;
+ iterator_range<object::symbol_iterator> symbols() const {
+ return iterator_range<object::symbol_iterator>(begin_symbols(),
+ end_symbols());
+ }
virtual object::section_iterator begin_sections() const = 0;
virtual object::section_iterator end_sections() const = 0;
+ iterator_range<object::section_iterator> sections() const {
+ return iterator_range<object::section_iterator>(begin_sections(),
+ end_sections());
+ }
virtual /* Triple::ArchType */ unsigned getArch() const = 0;