summaryrefslogtreecommitdiff
path: root/src/ortho/llvm/ortho_llvm.adb
diff options
context:
space:
mode:
authorTristan Gingold2014-12-16 08:53:35 +0100
committerTristan Gingold2014-12-16 08:53:35 +0100
commit3acfb5bd111360e3b98dadd46ac96980957f4381 (patch)
tree10ddc41d307b3b232b33112332744c5782413844 /src/ortho/llvm/ortho_llvm.adb
parent251c9b8a5aeb24d29711c5e600bb09db8bb9c23c (diff)
downloadghdl-3acfb5bd111360e3b98dadd46ac96980957f4381.tar.gz
ghdl-3acfb5bd111360e3b98dadd46ac96980957f4381.tar.bz2
ghdl-3acfb5bd111360e3b98dadd46ac96980957f4381.zip
ortho_llvm: add uwtable + nounwind attibutes for functions.
Diffstat (limited to 'src/ortho/llvm/ortho_llvm.adb')
-rw-r--r--src/ortho/llvm/ortho_llvm.adb1
1 files changed, 1 insertions, 0 deletions
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,