[llvm-remarkutil] Make tryParseRemarksFromInputFile static

All the functions in this file should be static to avoid ODR violations.
This commit is contained in:
Jessica Paquette 2022-09-13 10:19:17 -07:00
parent 025a5b22c8
commit 444320ab48
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ getInputMemoryBuffer(StringRef InputFileName) {
/// \p [out] StrTab - A string table populated for later remark serialization.
/// \returns Error::success() if all remarks were successfully parsed, and an
/// Error otherwise.
Error tryParseRemarksFromInputFile(
static Error tryParseRemarksFromInputFile(
StringRef InputFileName, Format InputFormat,
std::vector<std::unique_ptr<Remark>> &ParsedRemarks, StringTable &StrTab) {
auto MaybeBuf = getInputMemoryBuffer(InputFileName);