[Remarks] Don't serialize metadata if a string table is not used
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Thu, 5 Sep 2019 18:30:20 +0000 (18:30 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Thu, 5 Sep 2019 18:30:20 +0000 (18:30 +0000)
commit07f967d94dd7eb9666e8c2d5f6e0f4e8a14919cd
tree13516b9a91eea165bd3de182a50eead0eb17442f
parentf6400e75ebd49477535d9af61529e27dcffb292f
[Remarks] Don't serialize metadata if a string table is not used

For YAML remarks with no string table, the mode should not affect the
output.

llvm-svn: 371106
llvm/include/llvm/Remarks/YAMLRemarkSerializer.h
llvm/lib/Remarks/YAMLRemarkSerializer.cpp
llvm/unittests/Remarks/YAMLRemarksSerializerTest.cpp