OSDN Git Service

[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)
commitd86591e1d1f0d6e720cee72a2e4dfe351c9d4350
treea5d702850469d00b8e0bed94d336d5d28a448289
parent2513bdea0758f661cdbbebcc999e5c180b8fb0c5
[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

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