diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-11 02:23:13 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-11 02:23:13 +0000 |
commit | acbe4ba0bec71346e77a2f7360e8920212a07c81 (patch) | |
tree | 589773fcd773d6439ba821c39cf92706b11db03b | |
parent | 8153b5a6fed123b3a94302fcb951bbc03a93c2d3 (diff) |
Replace more usages of __func__ with LLVM_FUNCTION_NAME
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172161 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/libclang/CIndexHigh.cpp | 3 | ||||
-rw-r--r-- | tools/libclang/CXSourceLocation.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/libclang/CIndexHigh.cpp b/tools/libclang/CIndexHigh.cpp index 4f8a252993..81aa5b39db 100644 --- a/tools/libclang/CIndexHigh.cpp +++ b/tools/libclang/CIndexHigh.cpp @@ -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) diff --git a/tools/libclang/CXSourceLocation.cpp b/tools/libclang/CXSourceLocation.cpp index cee93b1daa..a6a031edd8 100644 --- a/tools/libclang/CXSourceLocation.cpp +++ b/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 @@ 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); |