forked from OSchip/llvm-project
[llvm-remarkutil] Make tryParseRemarksFromInputFile static
All the functions in this file should be static to avoid ODR violations.
This commit is contained in:
parent
025a5b22c8
commit
444320ab48
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue