Replace more usages of __func__ with LLVM_FUNCTION_NAME

llvm-svn: 172161
This commit is contained in:
Dmitri Gribenko 2013-01-11 02:23:13 +00:00
parent 216ff2ff29
commit 5ca49f71fd
2 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,7 @@
#include "CLog.h"
#include "clang/AST/DeclObjC.h"
#include "clang/Frontend/ASTUnit.h"
#include "llvm/Support/Compiler.h"
using namespace clang;
using namespace cxcursor;
@ -343,7 +344,7 @@ extern "C" {
void clang_findReferencesInFile(CXCursor cursor, CXFile file,
CXCursorAndRangeVisitor visitor) {
LogRef Log = Logger::make(__func__);
LogRef Log = Logger::make(LLVM_FUNCTION_NAME);
if (clang_Cursor_isNull(cursor)) {
if (Log)

View File

@ -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 @@ CXSourceLocation clang_getLocation(CXTranslationUnit tu,
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);