[yaml2obj][ELF] Add the section name -> section index map to State.
authorSean Silva <silvas@purdue.edu>
Thu, 20 Jun 2013 20:59:34 +0000 (20:59 +0000)
committerSean Silva <silvas@purdue.edu>
Thu, 20 Jun 2013 20:59:34 +0000 (20:59 +0000)
commitc18f66e70dea8abc8c9d86d40088fc8fc8247b20
tree2684a663d9e84b2989b4e3433ce586885e5cf2fb
parent11ca2e508c2152732c364d02e5b381e61c851084
[yaml2obj][ELF] Add the section name -> section index map to State.

One of the key things that the YAML format abstracts over is the use of
section numbers for referencing sections. Instead, textual section names
are used, which yaml2obj then translates into appropriate section
numbers. (Technically ELF doesn't care about section names (only section
numbers), but since this is a testing tool, readability counts).

This simplifies using section names as symbolic references in various
parts of the code. An upcoming commit will use this to allow symbols to
reference sections.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184467 91177308-0d34-0410-b5e6-96231b3b80d8
tools/yaml2obj/yaml2elf.cpp