[yaml2obj] - Make interface of `NameToIdxMap` class be human friendly and fix users.
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 2 May 2019 19:28:04 +0000 (19:28 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 2 May 2019 19:28:04 +0000 (19:28 +0000)
commit366212726a1a7caef08ebb1ebf84d511841d4f99
tree53e8c025fe7db95d6b2536b4b0793a27a3629bcf
parentd179ce99d68f0ffc45a3eb80aa955f3237eb6371
[yaml2obj] - Make interface of `NameToIdxMap` class be human friendly and fix users.

This patch inverses the values returned by `addName` and
`lookup` methods of the class mentioned so that they
now return true on success and false on failure.
Also, it does minor code cleanup.

Differential revision: https://reviews.llvm.org/D61190

llvm-svn: 359818
llvm/tools/yaml2obj/yaml2elf.cpp