summaryrefslogtreecommitdiff
path: root/tools/llvm-xray
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-01-17 09:39:31 +0000
committerPavel Labath <labath@google.com>2017-01-17 09:39:31 +0000
commitc52f4a4684577633d29ae713ddd1efe8bc8d0376 (patch)
tree99caaa25979858fa83caa23883bd5c63426a4e03 /tools/llvm-xray
parent62b3258a7c27b81ccc83d0e19fa2baf295ec460e (diff)
Remove pid_t usage from llvm-xray
This type is not available on windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292206 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-xray')
-rw-r--r--tools/llvm-xray/xray-graph.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/llvm-xray/xray-graph.h b/tools/llvm-xray/xray-graph.h
index dbd92a7893d..b09d2d0e70a 100644
--- a/tools/llvm-xray/xray-graph.h
+++ b/tools/llvm-xray/xray-graph.h
@@ -21,6 +21,7 @@
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/Support/Program.h"
#include "llvm/XRay/Trace.h"
#include "llvm/XRay/XRayRecord.h"
@@ -78,7 +79,8 @@ private:
/// graph.
///
/// FIXME: Perhaps we can Build this into LatencyAccountant? or vise versa?
- DenseMap<pid_t, SmallVector<FunctionAttr, 4>> PerThreadFunctionStack;
+ DenseMap<llvm::sys::ProcessInfo::ProcessId, SmallVector<FunctionAttr, 4>>
+ PerThreadFunctionStack;
/// Usefull object for getting human readable Symbol Names.
FuncIdConversionHelper &FuncIdHelper;