]> granicus.if.org Git - llvm/commit
[yaml2obj] - Simplify and reduce the code. NFC.
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 29 Apr 2019 12:25:01 +0000 (12:25 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 29 Apr 2019 12:25:01 +0000 (12:25 +0000)
commit2bd7c60ff75a6cfdb771881b43647329f5f8f74f
treed9ffea94795c647e10f8f5b539126f61fac92feb
parent9d44c8826a75e65b29fba46c480d65266621f2a4
[yaml2obj] - Simplify and reduce the code. NFC.

This inlines 2 single line static methods
and simplifies the code.

It is also possible to remove the `Is64Bit`
variable since it is used only once,
but I am not sure it will be better for readability.

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