[ELF] - Simplify Symbol::getSize(). NFC.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 17 Jul 2018 11:35:28 +0000 (11:35 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 17 Jul 2018 11:35:28 +0000 (11:35 +0000)
commit904ed692a1ad42858ddec1a8e382bc94b8f8e60e
treeca2c8272fc192fcf8a51bda19ff559582f92cd86
parenta41b24f32dd04e30d4b8877eba69e9220225e403
[ELF] - Simplify Symbol::getSize(). NFC.

There are following symbols currently available:
DefinedKind, SharedKind, UndefinedKind, LazyArchiveKind, LazyObjectKind.

Our code calls getSize() only for first two and there
seems to be no reason to return 0 for the rest.

llvm-svn: 337265
lld/ELF/Symbols.cpp