[compiler-rt] r201916 - Revert "Replace __FUNCTION__ with __func__, the latter being standard C99/C++11."

Joerg Sonnenberger joerg at britannica.bec.de
Fri Feb 21 17:03:55 PST 2014


On Sat, Feb 22, 2014 at 12:37:46AM -0000, Reid Kleckner wrote:
> Author: rnk
> Date: Fri Feb 21 18:37:45 2014
> New Revision: 201916
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=201916&view=rev
> Log:
> 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.

In that case it should be a local __func__=__FUNCTION__ define.

Joerg



More information about the llvm-commits mailing list