diff options
| author | Joerg Sonnenberger <joerg@bec.de> | 2014-02-21 23:55:15 +0000 |
|---|---|---|
| committer | Joerg Sonnenberger <joerg@bec.de> | 2014-02-21 23:55:15 +0000 |
| commit | b15779f307fdf5f728a5392d3726a35a1bf57e5d (patch) | |
| tree | 89eadfda56e95aa8cbc112aba2a90376a782ffe0 /compiler-rt/lib/sanitizer_common | |
| parent | 938b0df72dcaaeddcc0eb10a39bc5c66e84fbc80 (diff) | |
| download | bcm5719-llvm-b15779f307fdf5f728a5392d3726a35a1bf57e5d.tar.gz bcm5719-llvm-b15779f307fdf5f728a5392d3726a35a1bf57e5d.zip | |
Replace __FUNCTION__ with __func__, the latter being standard C99/C++11.
llvm-svn: 201910
Diffstat (limited to 'compiler-rt/lib/sanitizer_common')
5 files changed, 6 insertions, 6 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc index daaf7e1ce05..c3bdd34eb99 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc @@ -117,7 +117,7 @@ void *LowLevelAllocator::Allocate(uptr size) { if (allocated_end_ - allocated_current_ < (sptr)size) { uptr size_to_allocate = Max(size, GetPageSizeCached()); allocated_current_ = - (char*)MmapOrDie(size_to_allocate, __FUNCTION__); + (char*)MmapOrDie(size_to_allocate, __func__); allocated_end_ = allocated_current_ + size_to_allocate; if (low_level_alloc_callback) { low_level_alloc_callback((uptr)allocated_current_, diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_bitvector.h b/compiler-rt/lib/sanitizer_common/sanitizer_bitvector.h index d16205a7cbb..48aeabd44a2 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_bitvector.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_bitvector.h @@ -149,7 +149,7 @@ class TwoLevelBitVector { l2_[i0][i1].clear(); } bool res = l2_[i0][i1].setBit(i2); - // Printf("%s: %zd => %zd %zd %zd; %d\n", __FUNCTION__, + // Printf("%s: %zd => %zd %zd %zd; %d\n", __func__, // idx, i0, i1, i2, res); return res; } @@ -173,7 +173,7 @@ class TwoLevelBitVector { uptr i0 = idx0(idx); uptr i1 = idx1(idx); uptr i2 = idx2(idx); - // Printf("%s: %zd => %zd %zd %zd\n", __FUNCTION__, idx, i0, i1, i2); + // Printf("%s: %zd => %zd %zd %zd\n", __func__, idx, i0, i1, i2); return l1_[i0].getBit(i1) && l2_[i0][i1].getBit(i2); } diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.cc b/compiler-rt/lib/sanitizer_common/sanitizer_common.cc index 5e68c95b747..2dcfd0ccc00 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.cc @@ -93,7 +93,7 @@ uptr ReadFileToBuffer(const char *file_name, char **buff, if (internal_iserror(openrv)) return 0; fd_t fd = openrv; UnmapOrDie(*buff, *buff_size); - *buff = (char*)MmapOrDie(size, __FUNCTION__); + *buff = (char*)MmapOrDie(size, __func__); *buff_size = size; // Read up to one page at a time. read_len = 0; diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc b/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc index 833b7cf3db7..ae7b49988ad 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc @@ -178,7 +178,7 @@ void DumpProcessMap() { MemoryMappingLayout proc_maps(/*cache_enabled*/true); uptr start, end; const sptr kBufSize = 4095; - char *filename = (char*)MmapOrDie(kBufSize, __FUNCTION__); + char *filename = (char*)MmapOrDie(kBufSize, __func__); Report("Process memory map follows:\n"); while (proc_maps.Next(&start, &end, /* file_offset */0, filename, kBufSize, /* protection */0)) { diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc index 58f343d164a..b97fa78e069 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc @@ -105,7 +105,7 @@ void SetAlternateSignalStack() { // TODO(glider): the mapped stack should have the MAP_STACK flag in the // future. It is not required by man 2 sigaltstack now (they're using // malloc()). - void* base = MmapOrDie(kAltStackSize, __FUNCTION__); + void* base = MmapOrDie(kAltStackSize, __func__); altstack.ss_sp = base; altstack.ss_flags = 0; altstack.ss_size = kAltStackSize; |

