diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2013-01-28 17:29:50 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2013-01-28 17:29:50 +0000 |
commit | 6cff9deb1605e9cfe7e7af182828b3fdc1409922 (patch) | |
tree | c3683cbf651180547e9cfc35995eb874a9e22fb4 /compiler-rt | |
parent | 8c1f1e1ca2fbec710fa0fce55e0965e714493d93 (diff) | |
download | bcm5719-llvm-6cff9deb1605e9cfe7e7af182828b3fdc1409922.tar.gz bcm5719-llvm-6cff9deb1605e9cfe7e7af182828b3fdc1409922.zip |
Use the correct order of NOINLINE vs ret type to fix Windows build
llvm-svn: 173694
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_allocator.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h index 39c20b9624d..9d881210620 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h @@ -313,7 +313,7 @@ class SizeClassAllocator64 { alignment <= SizeClassMap::kMaxSize; } - Batch *NOINLINE AllocateBatch(AllocatorStats *stat, AllocatorCache *c, + NOINLINE Batch* AllocateBatch(AllocatorStats *stat, AllocatorCache *c, uptr class_id) { CHECK_LT(class_id, kNumClasses); RegionInfo *region = GetRegionInfo(class_id); @@ -324,7 +324,7 @@ class SizeClassAllocator64 { return b; } - void NOINLINE DeallocateBatch(AllocatorStats *stat, uptr class_id, Batch *b) { + NOINLINE void DeallocateBatch(AllocatorStats *stat, uptr class_id, Batch *b) { RegionInfo *region = GetRegionInfo(class_id); region->free_list.Push(b); region->n_freed += b->count; @@ -451,7 +451,7 @@ class SizeClassAllocator64 { return offset / (u32)size; } - Batch *NOINLINE PopulateFreeList(AllocatorStats *stat, AllocatorCache *c, + NOINLINE Batch* PopulateFreeList(AllocatorStats *stat, AllocatorCache *c, uptr class_id, RegionInfo *region) { BlockingMutexLock l(®ion->mutex); Batch *b = region->free_list.Pop(); @@ -573,7 +573,7 @@ class SizeClassAllocator32 { return reinterpret_cast<void*>(meta); } - Batch *NOINLINE AllocateBatch(AllocatorStats *stat, AllocatorCache *c, + NOINLINE Batch* AllocateBatch(AllocatorStats *stat, AllocatorCache *c, uptr class_id) { CHECK_LT(class_id, kNumClasses); SizeClassInfo *sci = GetSizeClassInfo(class_id); @@ -586,7 +586,7 @@ class SizeClassAllocator32 { return b; } - void NOINLINE DeallocateBatch(AllocatorStats *stat, uptr class_id, Batch *b) { + NOINLINE void DeallocateBatch(AllocatorStats *stat, uptr class_id, Batch *b) { CHECK_LT(class_id, kNumClasses); SizeClassInfo *sci = GetSizeClassInfo(class_id); SpinMutexLock l(&sci->mutex); @@ -782,7 +782,7 @@ struct SizeClassAllocatorLocalCache { } } - void NOINLINE Refill(SizeClassAllocator *allocator, uptr class_id) { + NOINLINE void Refill(SizeClassAllocator *allocator, uptr class_id) { InitCache(); PerClass *c = &per_class_[class_id]; Batch *b = allocator->AllocateBatch(&stats_, this, class_id); @@ -794,7 +794,7 @@ struct SizeClassAllocatorLocalCache { Deallocate(allocator, SizeClassMap::ClassID(sizeof(Batch)), b); } - void NOINLINE Drain(SizeClassAllocator *allocator, uptr class_id) { + NOINLINE void Drain(SizeClassAllocator *allocator, uptr class_id) { InitCache(); PerClass *c = &per_class_[class_id]; Batch *b; |