diff options
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageViewText.cpp')
-rw-r--r-- | llvm/tools/llvm-cov/SourceCoverageViewText.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageViewText.cpp b/llvm/tools/llvm-cov/SourceCoverageViewText.cpp index 0757a4ebd95..f8a313e359e 100644 --- a/llvm/tools/llvm-cov/SourceCoverageViewText.cpp +++ b/llvm/tools/llvm-cov/SourceCoverageViewText.cpp @@ -37,6 +37,15 @@ unsigned getDividerWidth(const CoverageViewOptions &Opts) { } // anonymous namespace +Expected<std::unique_ptr<raw_ostream>> +SourceCoverageViewText::createOutputFile(StringRef Path, bool InToplevel) { + return createOutputStream(getOptions(), Path, "txt", InToplevel); +} + +void SourceCoverageViewText::closeOutputFile(std::unique_ptr<raw_ostream> OS) { + OS.get()->operator<<('\n'); +} + void SourceCoverageViewText::renderSourceName(raw_ostream &OS) { getOptions().colored_ostream(OS, raw_ostream::CYAN) << getSourceName() << ":\n"; |