amd/common: Fix build with new ac_add_function_attr()
authorTobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Wed, 1 Mar 2017 21:16:27 +0000 (22:16 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 1 Mar 2017 22:53:38 +0000 (23:53 +0100)
commit6d600cf632f83d7ffdd844e0b3a049605ae858cc
tree30c4f68232dc3ff5b6c8bac2952802e7f6937863
parenta1727aa75ed252cd19c296ccf83cb595be971744
amd/common: Fix build with new ac_add_function_attr()

Fix usage of ac_add_function_attr() and make it known!

common/ac_nir_to_llvm.c: In function 'create_llvm_function':
common/ac_nir_to_llvm.c:265:4: error: implicit declaration of function
'ac_add_function_attr' [-Werror=implicit-function-declaration]
    ac_add_function_attr(main_function, i + 1, AC_FUNC_ATTR_BYVAL);
    ^~~~~~~~~~~~~~~~~~~~

Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_llvm_util.c
src/amd/common/ac_llvm_util.h
src/amd/common/ac_nir_to_llvm.c