summaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-04-14 06:42:56 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-04-14 06:42:56 +0000
commit1907f75445f4757f91d4a52f8a857a1f412fffce (patch)
treea65e3d8dc57c49cee641b812a9b9c33614307c48 /lib/Support
parent273a62f9ac324d00e8b7607ca8dabc85b64804b6 (diff)
downloadllvm-1907f75445f4757f91d4a52f8a857a1f412fffce.tar.gz
llvm-1907f75445f4757f91d4a52f8a857a1f412fffce.tar.bz2
llvm-1907f75445f4757f91d4a52f8a857a1f412fffce.tar.xz
[Allocator] Hoist the external helper function into a namespace scope
declaration. GCC 4.7 appears to get hopelessly confused by declaring this function within a member function of a class template. Go figure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/Allocator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/Allocator.cpp b/lib/Support/Allocator.cpp
index ae861c8c4b..7c306b2370 100644
--- a/lib/Support/Allocator.cpp
+++ b/lib/Support/Allocator.cpp
@@ -21,6 +21,8 @@
namespace llvm {
+namespace detail {
+
void printBumpPtrAllocatorStats(unsigned NumSlabs, size_t BytesAllocated,
size_t TotalMemory) {
errs() << "\nNumber of memory regions: " << NumSlabs << '\n'
@@ -30,6 +32,8 @@ void printBumpPtrAllocatorStats(unsigned NumSlabs, size_t BytesAllocated,
<< " (includes alignment, etc)\n";
}
+} // End namespace detail.
+
void PrintRecyclerStats(size_t Size,
size_t Align,
size_t FreeListSize) {