}
void
+mono_llvm_add_func_attr_nv (LLVMValueRef func, const char *attr_name, const char *attr_value)
+{
+ AttrBuilder NewAttrs;
+ NewAttrs.addAttribute (attr_name, attr_value);
+ unwrap<Function> (func)->addAttributes (AttributeList::FunctionIndex, NewAttrs);
+}
+
+void
mono_llvm_add_param_attr (LLVMValueRef param, AttrKind kind)
{
Function *func = unwrap<Argument> (param)->getParent ();
mono_llvm_add_func_attr (LLVMValueRef func, AttrKind kind);
void
+mono_llvm_add_func_attr_nv (LLVMValueRef func, const char *attr_name, const char *attr_value);
+
+void
mono_llvm_add_param_attr (LLVMValueRef param, AttrKind kind);
void
mono_llvm_add_func_attr (method, LLVM_ATTR_UW_TABLE);
+ if (cfg->disable_omit_fp)
+ mono_llvm_add_func_attr_nv (method, "no-frame-pointer-elim", "true");
+
if (cfg->compile_aot) {
if (is_externally_callable (ctx, cfg->method)) {
LLVMSetLinkage (method, LLVMExternalLinkage);