diff --git a/clang/tools/libclang/CLog.h b/clang/tools/libclang/CLog.h index 60555701d9a3..271bf4e28465 100644 --- a/clang/tools/libclang/CLog.h +++ b/clang/tools/libclang/CLog.h @@ -13,6 +13,7 @@ #include "llvm/ADT/IntrusiveRefCntPtr.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/StringRef.h" +#include "llvm/Support/Compiler.h" #include "llvm/Support/raw_ostream.h" #include @@ -91,6 +92,6 @@ public: /// } /// \endcode #define LOG_SECTION(NAME) if (LogRef Log = clang::cxindex::Logger::make(NAME)) -#define LOG_FUNC_SECTION LOG_SECTION(__func__) +#define LOG_FUNC_SECTION LOG_SECTION(LLVM_FUNCTION_NAME) #endif