Index: tools/llvm-xray/xray-account.h =================================================================== --- tools/llvm-xray/xray-account.h +++ tools/llvm-xray/xray-account.h @@ -28,12 +28,11 @@ class LatencyAccountant { public: typedef std::map> FunctionLatencyMap; - typedef std::map> + typedef std::map> PerThreadMinMaxTSCMap; typedef std::map> PerCPUMinMaxTSCMap; typedef std::vector> FunctionStack; - typedef std::map - PerThreadFunctionStackMap; + typedef std::map PerThreadFunctionStackMap; private: PerThreadFunctionStackMap PerThreadFunctionStack; @@ -77,13 +76,6 @@ /// bool accountRecord(const XRayRecord &Record); - const FunctionStack *getThreadFunctionStack(llvm::sys::procid_t TId) const { - auto I = PerThreadFunctionStack.find(TId); - if (I == PerThreadFunctionStack.end()) - return nullptr; - return &I->second; - } - const PerThreadFunctionStackMap &getPerThreadFunctionStack() const { return PerThreadFunctionStack; } Index: tools/llvm-xray/xray-graph.h =================================================================== --- tools/llvm-xray/xray-graph.h +++ tools/llvm-xray/xray-graph.h @@ -78,8 +78,7 @@ using FunctionStack = SmallVector; - using PerThreadFunctionStackMap = - DenseMap; + using PerThreadFunctionStackMap = DenseMap; class GraphT : public Graph { public: