From e7e21efd00e49bddc0a84d970815dccebe3305fd Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 18 Jul 2015 09:56:34 +0200 Subject: [PATCH] interface/extract_interface.cc: adjust to removal of Job class Note that at the time of writing, there is still a forward declaration of the Job class in the clang/Driver/Tool.h header. Anticipate the removal of this forward declaration. Signed-off-by: Sven Verdoolaege --- interface/extract_interface.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/interface/extract_interface.cc b/interface/extract_interface.cc index 3663ef76..6fe9d642 100644 --- a/interface/extract_interface.cc +++ b/interface/extract_interface.cc @@ -174,12 +174,15 @@ static Driver *construct_driver(const char *binary, DiagnosticsEngine &Diags) } #endif -/* Clang changed its API from 3.5 to 3.6, we fix this with a simple overloaded - * function here. +namespace clang { namespace driver { class Job; } } + +/* Clang changed its API from 3.5 to 3.6 and once more in 3.7. + * We fix this with a simple overloaded function here. */ struct ClangAPI { static Job *command(Job *J) { return J; } static Job *command(Job &J) { return &J; } + static Command *command(Command &C) { return &C; } }; /* Create a CompilerInvocation object that stores the command line -- 2.11.4.GIT