Index: tools/llvm-cov/CodeCoverage.cpp =================================================================== --- tools/llvm-cov/CodeCoverage.cpp +++ tools/llvm-cov/CodeCoverage.cpp @@ -882,7 +882,7 @@ } auto OS = std::move(OSOrErr.get()); - bool ShowTitle = true; + bool ShowTitle = ViewOpts.hasOutputDirectory(); for (const auto *Function : Functions) { auto FunctionView = createFunctionView(*Function, *Coverage); if (!FunctionView) {