interface/extract_interface.cc: adjust to rename of Diagnostic in clang
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 13 Oct 2011 14:26:02 +0000 (16:26 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 13 Oct 2011 14:26:05 +0000 (16:26 +0200)
Reported-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
configure.ac
interface/extract_interface.cc

index a65a003..7e624fd 100644 (file)
@@ -118,6 +118,11 @@ system)
                [AC_DEFINE([getExpansionLineNumber],
                        [getInstantiationLineNumber],
            [Define to getInstantiationLineNumber for older versions of clang])])
+       AC_EGREP_HEADER([DiagnosticsEngine],
+               [clang/Basic/Diagnostic.h], [],
+               [AC_DEFINE([DiagnosticsEngine],
+                       [Diagnostic],
+           [Define to Diagnostic for older versions of clang])])
        AC_LANG_POP
        CPPFLAGS="$SAVE_CPPFLAGS"
        ;;
index 4f8723b..7b25a77 100644 (file)
@@ -135,7 +135,7 @@ int main(int argc, char *argv[])
        DiagnosticOptions DO;
        Clang->createDiagnostics(0, NULL,
                                new TextDiagnosticPrinter(llvm::errs(), DO));
-       Diagnostic &Diags = Clang->getDiagnostics();
+       DiagnosticsEngine &Diags = Clang->getDiagnostics();
        Diags.setSuppressSystemWarnings(true);
        Clang->createFileManager();
        Clang->createSourceManager(Clang->getFileManager());