[Remarks] Add support for internalizing a remark in a string table
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 6 Sep 2019 17:22:51 +0000 (17:22 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 6 Sep 2019 17:22:51 +0000 (17:22 +0000)
commite14c0c5ae0112e714c7f83a45753116b871fbfaf
tree888bca3a776496a6dc62e81dc6270d326651c47c
parenta050307c0572213efa40ffe8a55cfd4b15387543
[Remarks] Add support for internalizing a remark in a string table

In order to keep remarks around, we need to make them tied to a string
table.

Users then can delete the parser and rely on the string table to keep
the memory of the strings alive and deduplicated.

llvm-svn: 371233
llvm/include/llvm/Remarks/RemarkStringTable.h
llvm/lib/Remarks/RemarkStringTable.cpp
llvm/unittests/Remarks/RemarksAPITest.cpp