There was an error with the #ifdef LLVM Version check
In the LLVM 4.0.0 changelog we can see that LLVMAddAttribute() has been removed. The new way to handle attributes is a bit more complicated and some utility functions
were added to the codebase under llmv_utils.h to allow for this. They are modeled in the same way mesa does it in their AMD drivers.
Remove attributes from memcpy inside of llvm_globals.c as they were not needed.
Adjusted the arguments to donothing() to use the new scheme
There was an error with the #ifdef LLVM Version check
In the LLVM 4.0.0 changelog we can see that
LLVMAddAttribute()
has been removed. The new way to handle attributes is a bit more complicated and some utility functions were added to the codebase underllmv_utils.h
to allow for this. They are modeled in the same way mesa does it in their AMD drivers.Remove attributes from memcpy inside of
llvm_globals.c
as they were not needed.Adjusted the arguments to
donothing()
to use the new scheme