Index: llvm/tools/llvm-cov/CoverageExporterLcov.cpp =================================================================== --- llvm/tools/llvm-cov/CoverageExporterLcov.cpp +++ llvm/tools/llvm-cov/CoverageExporterLcov.cpp @@ -83,7 +83,7 @@ OS << "SF:" << Filename << '\n'; if (!ExportSummaryOnly) { - renderFunctions(OS, Coverage.getCoveredFunctions()); + renderFunctions(OS, Coverage.getCoveredFunctions(Filename)); } renderFunctionSummary(OS, FileReport);