From cbba0279737dbeb1e29ba8987041f419fdf1c6b0 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 13 Oct 2012 11:03:44 +0200 Subject: [PATCH] configure.ac: check for getExpansionLoc in clang/Basic/SourceManager.h We started using getExpansionLoc in e166642 (PetScan::scan: use expansion offset to determine if statement is inside scop, Mon Oct 1 16:21:46 2012 +0200), but this method was called getInstantiationLoc in older versions of clang. Signed-off-by: Sven Verdoolaege --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index c54e359..d4a9464 100644 --- a/configure.ac +++ b/configure.ac @@ -43,6 +43,9 @@ AC_EGREP_HEADER([getDefaultTargetTriple], [llvm/Support/Host.h], [], AC_EGREP_HEADER([getExpansionLineNumber], [clang/Basic/SourceLocation.h], [], [AC_DEFINE([getExpansionLineNumber], [getInstantiationLineNumber], [Define to getInstantiationLineNumber for older versions of clang])]) +AC_EGREP_HEADER([getExpansionLoc], [clang/Basic/SourceManager.h], [], + [AC_DEFINE([getExpansionLoc], [getInstantiationLoc], + [Define to getInstantiationLoc for older versions of clang])]) AC_EGREP_HEADER([DiagnosticConsumer], [clang/Basic/Diagnostic.h], [], [AC_DEFINE([DiagnosticConsumer], [DiagnosticClient], [Define to DiagnosticClient for older versions of clang])]) -- 2.11.4.GIT