From e85353b8496bfceecaaef42ab412dda47a4c6911 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Tue, 26 Jul 2016 21:55:39 +0000 Subject: Revert "[llvm-cov] Add support for exporting coverage data to JSON" This reverts commit r276813. The Windows bots are complaining about some of the filename regexes in the tests: http://bb.pgr.jp/builders/ninja-clang-i686-msc19-R/builds/5299 llvm-svn: 276816 --- llvm/tools/llvm-cov/CodeCoverage.cpp | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) (limited to 'llvm/tools/llvm-cov/CodeCoverage.cpp') diff --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp index 494912e..e274483 100644 --- a/llvm/tools/llvm-cov/CodeCoverage.cpp +++ b/llvm/tools/llvm-cov/CodeCoverage.cpp @@ -38,10 +38,6 @@ using namespace llvm; using namespace coverage; -void exportCoverageDataToJson(StringRef ObjectFilename, - const coverage::CoverageMapping &CoverageMapping, - raw_ostream &OS); - namespace { /// \brief The implementation of the coverage tool. class CodeCoverageTool { @@ -50,9 +46,7 @@ public: /// \brief The show command. Show, /// \brief The report command. - Report, - /// \brief The export command. - Export + Report }; /// \brief Print the error message to the error output stream. @@ -100,9 +94,6 @@ public: int report(int argc, const char **argv, CommandLineParserType commandLineParser); - int export_(int argc, const char **argv, - CommandLineParserType commandLineParser); - std::string ObjectFilename; CoverageViewOptions ViewOpts; std::string PGOFilename; @@ -543,8 +534,6 @@ int CodeCoverageTool::run(Command Cmd, int argc, const char **argv) { return show(argc, argv, commandLineParser); case Report: return report(argc, argv, commandLineParser); - case Export: - return export_(argc, argv, commandLineParser); } return 0; } @@ -705,24 +694,6 @@ int CodeCoverageTool::report(int argc, const char **argv, return 0; } -int CodeCoverageTool::export_(int argc, const char **argv, - CommandLineParserType commandLineParser) { - - auto Err = commandLineParser(argc, argv); - if (Err) - return Err; - - auto Coverage = load(); - if (!Coverage) { - error("Could not load coverage information"); - return 1; - } - - exportCoverageDataToJson(ObjectFilename, *Coverage.get(), outs()); - - return 0; -} - int showMain(int argc, const char *argv[]) { CodeCoverageTool Tool; return Tool.run(CodeCoverageTool::Show, argc, argv); @@ -732,8 +703,3 @@ int reportMain(int argc, const char *argv[]) { CodeCoverageTool Tool; return Tool.run(CodeCoverageTool::Report, argc, argv); } - -int exportMain(int argc, const char *argv[]) { - CodeCoverageTool Tool; - return Tool.run(CodeCoverageTool::Export, argc, argv); -} -- cgit v1.1