[llvm/Object] - Add a test for "empty string table" error.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 31 Jul 2019 08:12:01 +0000 (08:12 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 31 Jul 2019 08:12:01 +0000 (08:12 +0000)
commitd65c166e35dbc3432d7b3ad5a7eb6fe7b9e7e211
treea1fba9dcece1f4913add47489379c212b9ca7194
parent2200a9bdf351914d8d8c68cea966a9aec50ec0fd
[llvm/Object] - Add a test for "empty string table" error.

This error was never tested. In this patch I improved
the error message, added the test case and also simplified
the code that processes a similar error right below.

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

llvm-svn: 367391
llvm/include/llvm/Object/ELF.h
llvm/test/Object/invalid.test