[llvm] r292206 - Remove pid_t usage from llvm-xray

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 17 01:39:32 PST 2017


Author: labath
Date: Tue Jan 17 03:39:31 2017
New Revision: 292206

URL: http://llvm.org/viewvc/llvm-project?rev=292206&view=rev
Log:
Remove pid_t usage from llvm-xray

This type is not available on windows.

Modified:
    llvm/trunk/tools/llvm-xray/xray-graph.h

Modified: llvm/trunk/tools/llvm-xray/xray-graph.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-xray/xray-graph.h?rev=292206&r1=292205&r2=292206&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-xray/xray-graph.h (original)
+++ llvm/trunk/tools/llvm-xray/xray-graph.h Tue Jan 17 03:39:31 2017
@@ -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;




More information about the llvm-commits mailing list