From f44533c65e351329306aec7bb9e3eeab26c009b6 Mon Sep 17 00:00:00 2001 From: Yuchen Wu Date: Tue, 5 Nov 2013 01:56:29 +0000 Subject: Revert "llvm-cov: Added command-line option to change dir." This reverts commit d8acf0078cf363252727acff00f85ae8074f95b3. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194040 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-cov/llvm-cov.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'tools/llvm-cov') diff --git a/tools/llvm-cov/llvm-cov.cpp b/tools/llvm-cov/llvm-cov.cpp index 18277737b6..ad6c671815 100644 --- a/tools/llvm-cov/llvm-cov.cpp +++ b/tools/llvm-cov/llvm-cov.cpp @@ -20,7 +20,6 @@ #include "llvm/Support/raw_ostream.h" #include "llvm/Support/Signals.h" #include "llvm/Support/system_error.h" -#include using namespace llvm; static cl::opt @@ -35,9 +34,6 @@ InputGCDA("gcda", cl::desc(""), cl::init("")); static cl::opt OutputFile("o", cl::desc(""), cl::init("-")); -static cl::opt -WorkingDir("C", cl::desc("change path of working directory"), - cl::init("")); //===----------------------------------------------------------------------===// int main(int argc, char **argv) { @@ -48,13 +44,6 @@ int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv, "llvm coverage tool\n"); - if (!WorkingDir.empty()) { - if (chdir(WorkingDir.c_str()) == -1) { - errs() << "Cannot change to directory: " << WorkingDir << ".\n"; - return 1; - } - } - std::string ErrorInfo; raw_fd_ostream OS(OutputFile.c_str(), ErrorInfo); if (!ErrorInfo.empty()) @@ -88,6 +77,7 @@ int main(int argc, char **argv) { } } + if (DumpGCOV) GF.dump(); -- cgit v1.2.3