summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit9778921a0b3145003a091ffd6b030c81f7dccc97 (patch)
treeee0bcf1e075416a4c4c5823e7190c2ac4ec5c4a3 /llvm/tools/llvm-xray
parent4165efdc58c4463edc425b925846935eb307bfcc (diff)
downloadbcm5719-llvm-9778921a0b3145003a091ffd6b030c81f7dccc97.tar.gz
bcm5719-llvm-9778921a0b3145003a091ffd6b030c81f7dccc97.zip
Remove pid_t usage from llvm-xray
This type is not available on windows. llvm-svn: 292206
Diffstat (limited to 'llvm/tools/llvm-xray')
-rw-r--r--llvm/tools/llvm-xray/xray-graph.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-xray/xray-graph.h b/llvm/tools/llvm-xray/xray-graph.h
index dbd92a7893d..b09d2d0e70a 100644
--- a/llvm/tools/llvm-xray/xray-graph.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud