From 7f85cb14aaec25bb434aa8f3f59a0824570d048c Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 24 Sep 2014 16:01:34 -0400 Subject: Port to LLVM/Clang SVN r218400 (trunk) Traversal of the clang::driver::JobList entries now must use 'const' clang::driver::Command instances. --- README.rst | 2 +- src/RunClang.cxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index bd6c2ba..9bd6910 100644 --- a/README.rst +++ b/README.rst @@ -29,7 +29,7 @@ To build CastXML from source, first obtain the prerequisites: * `LLVM/Clang`_ compiler SDK install tree built using the C++ compiler. This version of CastXML has been tested with LLVM/Clang SVN revision - ``216182``. + ``218400``. * Optionally, the `Sphinx`_ documentation generator to build documentation. diff --git a/src/RunClang.cxx b/src/RunClang.cxx index 9043f5b..6d83575 100644 --- a/src/RunClang.cxx +++ b/src/RunClang.cxx @@ -308,7 +308,8 @@ static int runClangImpl(const char* const* argBeg, bool result = true; for(clang::driver::JobList::const_iterator i = c->getJobs().begin(), e = c->getJobs().end(); i != e; ++i) { - clang::driver::Command* cmd = llvm::dyn_cast(*i); + clang::driver::Command const* cmd = + llvm::dyn_cast(i->get()); if(cmd && strcmp(cmd->getCreator().getName(), "clang") == 0) { // Invoke Clang with this set of arguments. std::unique_ptr -- cgit v0.12