[Binary] Add iterator to the OffloadBinary string maps
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 14 Jun 2022 18:33:32 +0000 (14:33 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 15 Jun 2022 16:24:26 +0000 (12:24 -0400)
commit601ec17d547bf2dc03565b541bae8ec069fbd22b
treee1f21b8e95a414f92c488adc795191b1039e000d
parent0c2edf27a22efb648b36343d49a5dbe72903b549
[Binary] Add iterator to the OffloadBinary string maps

The offload binary contains internally a string map of all the key and
value pairs identified in the binary itself. Normally users query these
values from the `getString` function, but this makes it difficult to
identify which strings are availible. This patch adds a simple const
iterator range to the offload binary allowing users to iterate through
the strings.

Reviewed By: tra

Differential Revision: https://reviews.llvm.org/D127774
llvm/include/llvm/Object/OffloadBinary.h