projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e710371
)
[gcov] Move formatBranchInfo into an anonymous namespace.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Mon, 23 Mar 2015 13:59:13 +0000
(13:59 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Mon, 23 Mar 2015 13:59:13 +0000
(13:59 +0000)
NFC.
llvm-svn: 232949
llvm/lib/IR/GCOV.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/GCOV.cpp
b/llvm/lib/IR/GCOV.cpp
index
b0a2bae
..
b76017c
100644
(file)
--- a/
llvm/lib/IR/GCOV.cpp
+++ b/
llvm/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<MemoryBuffer> Buffer;
StringRef Remaining;