Make test-ir-walker work on ELF binaries directly
authorDodji Seketeli <dodji@redhat.com>
Mon, 6 Aug 2018 08:28:06 +0000 (10:28 +0200)
committerDodji Seketeli <dodji@redhat.com>
Mon, 6 Aug 2018 08:28:06 +0000 (10:28 +0200)
commita6e65323529e5595ba58ffb56037410a9ab06c18
tree402c2f9048250c91f6e4e8f581440b04692e0ace
parent4b2dac627466f828fcdd394e0b5e4c60b557bf6a
Make test-ir-walker work on ELF binaries directly

The tests/test-ir-walker.cc example was working on abixml files
resulting from abidw.  This commit changes that to make it work on
ELF input files directly.  The commit also adds some comments to make
it easier to understand the concepts.

* test-ir-walker.cc (main): Load an ABI corpus from an elf file
and walk its translation units.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tests/test-ir-walker.cc