aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cov/llvm-cov.cpp
diff options
context:
space:
mode:
authorYuchen Wu <yuchenericwu@hotmail.com>2013-11-05 01:56:29 +0000
committerYuchen Wu <yuchenericwu@hotmail.com>2013-11-05 01:56:29 +0000
commite68c5f82421b4a9365f1d3f2768537538d45ece9 (patch)
tree125a516c5e51bfff53e1ca4ab56f6b99338296f4 /llvm/tools/llvm-cov/llvm-cov.cpp
parentf3e653e9a6c7ef079174146480d899b99bd487ae (diff)
downloadllvm-e68c5f82421b4a9365f1d3f2768537538d45ece9.zip
llvm-e68c5f82421b4a9365f1d3f2768537538d45ece9.tar.gz
llvm-e68c5f82421b4a9365f1d3f2768537538d45ece9.tar.bz2
Revert "llvm-cov: Added command-line option to change dir."
This reverts commit d8acf0078cf363252727acff00f85ae8074f95b3. llvm-svn: 194040
Diffstat (limited to 'llvm/tools/llvm-cov/llvm-cov.cpp')
-rw-r--r--llvm/tools/llvm-cov/llvm-cov.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/llvm/tools/llvm-cov/llvm-cov.cpp b/llvm/tools/llvm-cov/llvm-cov.cpp
index 1827773..ad6c671 100644
--- a/llvm/tools/llvm-cov/llvm-cov.cpp
+++ b/llvm/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 <unistd.h>
using namespace llvm;
static cl::opt<bool>
@@ -35,9 +34,6 @@ InputGCDA("gcda", cl::desc("<input gcda file>"), cl::init(""));
static cl::opt<std::string>
OutputFile("o", cl::desc("<output llvm-cov file>"), cl::init("-"));
-static cl::opt<std::string>
-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();