summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra
diff options
context:
space:
mode:
authorEdwin Vane <edwin.vane@intel.com>2013-06-03 21:14:24 +0000
committerEdwin Vane <edwin.vane@intel.com>2013-06-03 21:14:24 +0000
commit130b9676b652316b2d79966bea1ba3843d035ce3 (patch)
treeee07bcaed6c6c5b1ebcd162425e688cd506f3ed5 /clang-tools-extra
parentf051dbce73cd3657aa808fa2045b8bf674f606e7 (diff)
downloadbcm5719-llvm-130b9676b652316b2d79966bea1ba3843d035ce3.tar.gz
bcm5719-llvm-130b9676b652316b2d79966bea1ba3843d035ce3.zip
cpp11-migrate: turn off PID-based perf data filenames
Getting PIDs on Windows is broken. Proper fix is simple but requires testing so just disabling PID-based file names for now. llvm-svn: 183154
Diffstat (limited to 'clang-tools-extra')
-rw-r--r--clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp b/clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp
index 8e24b29ac0e..875d6a0c710 100644
--- a/clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp
+++ b/clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp
@@ -103,8 +103,12 @@ void reportExecutionTimes(
P.createDirectoryOnDisk(true);
// Get PID and current time.
- llvm::sys::self_process *SP = llvm::sys::process::get_self();
- unsigned Pid = SP->get_id();
+ // FIXME: id_type on Windows is NOT a process id despite the function name.
+ // Need to call GetProcessId() providing it what get_id() returns. For now
+ // disabling PID-based file names until this is fixed properly.
+ //llvm::sys::self_process *SP = llvm::sys::process::get_self();
+ //id_type Pid = SP->get_id();
+ unsigned Pid = 0;
llvm::TimeRecord T = llvm::TimeRecord::getCurrentTime();
std::string FileName;
OpenPOWER on IntegriCloud