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 | c24da5e8f70410872bd9a8c54bbc96e73b3c9150 (patch) | |
tree | dd04075dce5a43a2806219a505b86c65562028fb /lib/sanitizer_common/sanitizer_bitvector.h | |
parent | 792a84022b59c8019a60b7bc8e83387213c04a82 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_bitvector.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_bitvector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sanitizer_common/sanitizer_bitvector.h b/lib/sanitizer_common/sanitizer_bitvector.h index 48aeabd44..d16205a7c 100644 --- a/lib/sanitizer_common/sanitizer_bitvector.h +++ b/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", __func__, + // Printf("%s: %zd => %zd %zd %zd; %d\n", __FUNCTION__, // 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", __func__, idx, i0, i1, i2); + // Printf("%s: %zd => %zd %zd %zd\n", __FUNCTION__, idx, i0, i1, i2); return l1_[i0].getBit(i1) && l2_[i0][i1].getBit(i2); } |