From cab2a096fdf27f1c3cf32ebc777e3560ac0dd0f5 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 23 Mar 2015 13:59:13 +0000 Subject: [PATCH] [gcov] Move formatBranchInfo into an anonymous namespace. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232949 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/GCOV.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IR/GCOV.cpp b/lib/IR/GCOV.cpp index b0a2bae4e06..b76017c51c5 100644 --- a/lib/IR/GCOV.cpp +++ b/lib/IR/GCOV.cpp @@ -445,6 +445,7 @@ static uint32_t branchDiv(uint64_t Numerator, uint64_t Divisor) { return Res; } +namespace { struct formatBranchInfo { formatBranchInfo(const GCOVOptions &Options, uint64_t Count, uint64_t Total) : Options(Options), Count(Count), Total(Total) {} @@ -468,7 +469,6 @@ static raw_ostream &operator<<(raw_ostream &OS, const formatBranchInfo &FBI) { return OS; } -namespace { class LineConsumer { std::unique_ptr Buffer; StringRef Remaining; -- 2.40.0