mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Add a new portability macro LLVM_FUNCTION_NAME, that expands to __func__, if
supported. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -249,4 +249,13 @@
|
|||||||
# define LLVM_ASSUME_ALIGNED(p, a) (p)
|
# define LLVM_ASSUME_ALIGNED(p, a) (p)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/// \macro LLVM_FUNCTION_NAME
|
||||||
|
/// \brief Expands to __func__ on compilers which support it. Otherwise,
|
||||||
|
/// expands to a compiler-dependent replacement.
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
# define LLVM_FUNCTION_NAME __FUNCTION__
|
||||||
|
#else
|
||||||
|
# define LLVM_FUNCTION_NAME __func__
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user