Minor update to reflect LLVM 3.5 API changes

The two first commits should be OK, but the third cannot be merged until we use LLVM 3.5.
This is because a function name changes.

Advice on how to merge this properly ?