[Remarks] Allow remarks::Format::YAML to take a string table
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Mon, 16 Sep 2019 22:45:17 +0000 (22:45 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Mon, 16 Sep 2019 22:45:17 +0000 (22:45 +0000)
commit77383d83eb3fd5db26f985d7a9404d7a00f86bc0
treeb89b849849fe08e6ba50faa8171587895c165bf6
parentc693aa3def0191634d1dac78ff1b62ef629a89bc
[Remarks] Allow remarks::Format::YAML to take a string table

It should be allowed to take a string table in case all the strings in
the remarks point there, but it shouldn't use it during serialization.

llvm-svn: 372042
llvm/include/llvm/Remarks/BitstreamRemarkSerializer.h
llvm/include/llvm/Remarks/RemarkSerializer.h
llvm/include/llvm/Remarks/YAMLRemarkSerializer.h
llvm/lib/Remarks/BitstreamRemarkSerializer.cpp
llvm/lib/Remarks/RemarkSerializer.cpp
llvm/lib/Remarks/RemarkStringTable.cpp
llvm/lib/Remarks/YAMLRemarkSerializer.cpp
llvm/unittests/Remarks/YAMLRemarksSerializerTest.cpp