BFI: Add constructor for Weight
[oota-llvm.git] / include / llvm / Analysis / BlockFrequencyInfoImpl.h
index ba69c7ae3fe05a5956ba869d87da16bd58978c61..bb256c7bbcc8619801d9b1bae7626060560d7089 100644 (file)
@@ -322,6 +322,8 @@ public:
     BlockNode TargetNode;
     uint64_t Amount;
     Weight() : Type(Local), Amount(0) {}
+    Weight(DistType Type, BlockNode TargetNode, uint64_t Amount)
+        : Type(Type), TargetNode(TargetNode), Amount(Amount) {}
   };
 
   /// \brief Distribution of unscaled probability weight.