libclang logging: fixup for MSVC, which does not have __func__

llvm-svn: 172158
This commit is contained in:
Dmitri Gribenko 2013-01-11 01:15:02 +00:00
parent 7f25427686
commit 9f08be0272
1 changed files with 2 additions and 1 deletions

View File

@ -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 <string>
@ -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