Replace more usages of __func__ with LLVM_FUNCTION_NAME
llvm-svn: 172161
diff --git a/clang/tools/libclang/CXSourceLocation.cpp b/clang/tools/libclang/CXSourceLocation.cpp
index cee93b1..a6a031e 100644
--- a/clang/tools/libclang/CXSourceLocation.cpp
+++ b/clang/tools/libclang/CXSourceLocation.cpp
@@ -18,6 +18,7 @@
#include "CXString.h"
#include "CXTranslationUnit.h"
#include "CLog.h"
+#include "llvm/Support/Compiler.h"
#include "llvm/Support/Format.h"
using namespace clang;
@@ -125,7 +126,7 @@
if (!tu || !file)
return clang_getNullLocation();
- LogRef Log = Logger::make(__func__);
+ LogRef Log = Logger::make(LLVM_FUNCTION_NAME);
ASTUnit *CXXUnit = static_cast<ASTUnit *>(tu->TUData);
ASTUnit::ConcurrencyCheck Check(*CXXUnit);
const FileEntry *File = static_cast<const FileEntry *>(file);