amd/common: move llvm helper prototype to ac_llvm_util.h
[mesa.git] / src / amd / common / ac_llvm_helper.cpp
index 062f0aad92b7be062d7a9359af4297f454e0ccd8..125f5f3d7a9d7594eccddb4a8425ce67ad287fa7 100644 (file)
 #  undef DEBUG
 #endif
 
-#include "ac_nir_to_llvm.h"
+#include "ac_llvm_util.h"
 #include <llvm-c/Core.h>
 #include <llvm/Target/TargetOptions.h>
 #include <llvm/ExecutionEngine/ExecutionEngine.h>
 
-extern "C" void
-ac_add_attr_dereferenceable(LLVMValueRef val, uint64_t bytes)
+void ac_add_attr_dereferenceable(LLVMValueRef val, uint64_t bytes)
 {
    llvm::Argument *A = llvm::unwrap<llvm::Argument>(val);
    llvm::AttrBuilder B;