From 3acfb5bd111360e3b98dadd46ac96980957f4381 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 16 Dec 2014 08:53:35 +0100 Subject: ortho_llvm: add uwtable + nounwind attibutes for functions. --- src/ortho/llvm/ortho_llvm.adb | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ortho/llvm/ortho_llvm.adb') diff --git a/src/ortho/llvm/ortho_llvm.adb b/src/ortho/llvm/ortho_llvm.adb index d57976a..8925c26 100644 --- a/src/ortho/llvm/ortho_llvm.adb +++ b/src/ortho/llvm/ortho_llvm.adb @@ -2086,6 +2086,7 @@ package body Ortho_LLVM is end if; if Decl = Null_ValueRef then Decl := AddFunction (Module, Id, Ftype); + AddFunctionAttr (Decl, NoUnwindAttribute + UWTable); end if; Res := (Kind => ON_Subprg_Decl, -- cgit