diff options
| author | Reid Kleckner <reid@kleckner.net> | 2014-02-22 00:37:45 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2014-02-22 00:37:45 +0000 |
| commit | 324eee45a74c13f60e3ef23cfa0990e937996551 (patch) | |
| tree | e4fcf89afcf6cafb842baf2e68c41eaa4908e1cb /compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc | |
| parent | dec8d55b1d947d1174f5a540bb0b14a895ed2cb4 (diff) | |
| download | bcm5719-llvm-324eee45a74c13f60e3ef23cfa0990e937996551.tar.gz bcm5719-llvm-324eee45a74c13f60e3ef23cfa0990e937996551.zip | |
Revert "Replace __FUNCTION__ with __func__, the latter being standard C99/C++11."
This reverts commit r201910.
While __func__ may be standard in C++11, it was only recently added to
MSVC in 2013 CTP, and LLVM supports MSVC 2012. __FUNCTION__ may not be
standard, but it's *very* portable.
llvm-svn: 201916
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc index b97fa78e069..58f343d164a 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, __func__); + void* base = MmapOrDie(kAltStackSize, __FUNCTION__); altstack.ss_sp = base; altstack.ss_flags = 0; altstack.ss_size = kAltStackSize; |

