Skip to content

Commit 228c4d5

Browse files
committed
SourceKit: adapt for SVN r284681
LLVM SVN r284681 replaced `LLVM_FUNCTION_NAME` with `__func__` as all supported compilers support that keyword now. The holdout was MSVC, and swift requires clang, so this is always supported. NFC.
1 parent 2cb1b35 commit 228c4d5

File tree

1 file changed

+1
-1
lines changed
  • tools/SourceKit/include/SourceKit/Support

1 file changed

+1
-1
lines changed

tools/SourceKit/include/SourceKit/Support/Logging.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class Logger : public llvm::RefCountedBase<Logger> {
105105
/// \endcode
106106
#define LOG_SECTION(NAME, LEVEL) \
107107
if (LogRef Log = SourceKit::Logger::make(NAME, SourceKit::Logger::Level::LEVEL))
108-
#define LOG_FUNC_SECTION(LEVEL) LOG_SECTION(LLVM_FUNCTION_NAME, LEVEL)
108+
#define LOG_FUNC_SECTION(LEVEL) LOG_SECTION(__func__, LEVEL)
109109
#define LOG_FUNC_SECTION_WARN LOG_FUNC_SECTION(Warning)
110110

111111
#define LOG(NAME, LEVEL, msg) LOG_SECTION(NAME, LEVEL) \

0 commit comments

Comments
 (0)