]> granicus.if.org Git - llvm/commitdiff
Remove pid_t usage from llvm-xray
authorPavel Labath <labath@google.com>
Tue, 17 Jan 2017 09:39:31 +0000 (09:39 +0000)
committerPavel Labath <labath@google.com>
Tue, 17 Jan 2017 09:39:31 +0000 (09:39 +0000)
This type is not available on windows.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292206 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-xray/xray-graph.h

index dbd92a7893d15347e72ed640f9091913ef9a4fbb..b09d2d0e70af6ce91f7bec16f958f14d4373d735 100644 (file)
@@ -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;