Make some helpers static or move into the llvm namespace.
[oota-llvm.git] / lib / ProfileData / CoverageMappingWriter.cpp
index f5e6ab4638053a8d9c15051e9bcae32421754a2d..15d3cd3d48d0d2a086fad4754fdb854a36ab346c 100644 (file)
@@ -103,7 +103,8 @@ static unsigned countFileIDs(ArrayRef<CounterMappingRegion> Regions,
 ///     A counter with kind Counter::Expression and an expression
 ///     with kind CounterExpression::Add
 /// Remaining bits - Counter/Expression ID.
-unsigned encodeCounter(ArrayRef<CounterExpression> Expressions, Counter C) {
+static unsigned encodeCounter(ArrayRef<CounterExpression> Expressions,
+                              Counter C) {
   unsigned Tag = unsigned(C.getKind());
   if (C.isExpression())
     Tag += Expressions[C.getExpressionID()].Kind;