llvm-nm: Don't print value or size for undefined or weak symbols
Undefined and weak symbols don't have a meaningful size or value.
As such, nothing should be printed for those attributes (this is
already done for the address with 'U') with the BSD format. This
matches what GNU nm does.
Note that for the POSIX.2 format  zero values are still
printed for the size and value. This seems in spirit with
the format strings in that specification, but is debatable.
Differential Revision: https://reviews.llvm.org/D26936