[llvm] r232949 - [gcov] Move formatBranchInfo into an anonymous namespace.

Benjamin Kramer benny.kra at googlemail.com
Mon Mar 23 06:59:14 PDT 2015


Author: d0k
Date: Mon Mar 23 08:59:13 2015
New Revision: 232949

URL: http://llvm.org/viewvc/llvm-project?rev=232949&view=rev
Log:
[gcov] Move formatBranchInfo into an anonymous namespace.

NFC.

Modified:
    llvm/trunk/lib/IR/GCOV.cpp

Modified: llvm/trunk/lib/IR/GCOV.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/GCOV.cpp?rev=232949&r1=232948&r2=232949&view=diff
==============================================================================
--- llvm/trunk/lib/IR/GCOV.cpp (original)
+++ llvm/trunk/lib/IR/GCOV.cpp Mon Mar 23 08:59:13 2015
@@ -445,6 +445,7 @@ static uint32_t branchDiv(uint64_t Numer
   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_ostre
   return OS;
 }
 
-namespace {
 class LineConsumer {
   std::unique_ptr<MemoryBuffer> Buffer;
   StringRef Remaining;





More information about the llvm-commits mailing list