[yaml2obj] Do not write the string table if there is no string entry.
authorEsme-Yi <esme.yi@ibm.com>
Mon, 26 Jul 2021 02:37:49 +0000 (02:37 +0000)
committerEsme-Yi <esme.yi@ibm.com>
Mon, 26 Jul 2021 02:37:49 +0000 (02:37 +0000)
commit2eb7e5f0eda72b7989f17827a325035075f6bd3d
tree414595e8637267a36af754f360a24c310beefeaa
parent9451403c5f8c70c2ef022bd721db2b1c452eac79
[yaml2obj] Do not write the string table if there is no string entry.

Summary: yaml2obj shouldn't create the string table that isn't needed
         - doing so wastes time and disk space.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D106420
llvm/lib/ObjectYAML/XCOFFEmitter.cpp