From 53937db801f61f8768daa9d3af8c4d5079527b7a Mon Sep 17 00:00:00 2001 From: Erik Pilkington Date: Thu, 20 Oct 2016 02:46:22 +0000 Subject: [PATCH] Replace uses of LLVM_FUNCTION_NAME with __func__, this was macro was removed from llvm/Support in r284681 llvm-svn: 284690 --- clang/tools/libclang/CIndexHigh.cpp | 4 ++-- clang/tools/libclang/CLog.h | 2 +- clang/tools/libclang/CXSourceLocation.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/tools/libclang/CIndexHigh.cpp b/clang/tools/libclang/CIndexHigh.cpp index d2baa13..bec0e82 100644 --- a/clang/tools/libclang/CIndexHigh.cpp +++ b/clang/tools/libclang/CIndexHigh.cpp @@ -411,7 +411,7 @@ extern "C" { CXResult clang_findReferencesInFile(CXCursor cursor, CXFile file, CXCursorAndRangeVisitor visitor) { - LogRef Log = Logger::make(LLVM_FUNCTION_NAME); + LogRef Log = Logger::make(__func__); if (clang_Cursor_isNull(cursor)) { if (Log) @@ -485,7 +485,7 @@ CXResult clang_findIncludesInFile(CXTranslationUnit TU, CXFile file, return CXResult_Invalid; } - LogRef Log = Logger::make(LLVM_FUNCTION_NAME); + LogRef Log = Logger::make(__func__); if (!file) { if (Log) *Log << "Null file"; diff --git a/clang/tools/libclang/CLog.h b/clang/tools/libclang/CLog.h index b9309ed..e1d6a57 100644 --- a/clang/tools/libclang/CLog.h +++ b/clang/tools/libclang/CLog.h @@ -98,6 +98,6 @@ public: /// \endcode #define LOG_SECTION(NAME) \ if (clang::cxindex::LogRef Log = clang::cxindex::Logger::make(NAME)) -#define LOG_FUNC_SECTION LOG_SECTION(LLVM_FUNCTION_NAME) +#define LOG_FUNC_SECTION LOG_SECTION(__func__) #endif diff --git a/clang/tools/libclang/CXSourceLocation.cpp b/clang/tools/libclang/CXSourceLocation.cpp index e75f6a7..68ecf38 100644 --- a/clang/tools/libclang/CXSourceLocation.cpp +++ b/clang/tools/libclang/CXSourceLocation.cpp @@ -131,7 +131,7 @@ CXSourceLocation clang_getLocation(CXTranslationUnit TU, if (line == 0 || column == 0) return clang_getNullLocation(); - LogRef Log = Logger::make(LLVM_FUNCTION_NAME); + LogRef Log = Logger::make(__func__); ASTUnit *CXXUnit = cxtu::getASTUnit(TU); ASTUnit::ConcurrencyCheck Check(*CXXUnit); const FileEntry *File = static_cast(file); -- 2.7.4