summaryrefslogtreecommitdiff
path: root/lib/VMCore/Type.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-22 02:14:48 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-22 02:14:48 +0000
commit66123626ad5497bfe3bfd14fea85468091ca8d3d (patch)
treebdb0c7dd41593ef4d4be93d530106e8babb66924 /lib/VMCore/Type.cpp
parent67d8ed9e608bed084302536dab41ba2c39d3f783 (diff)
downloadllvm-66123626ad5497bfe3bfd14fea85468091ca8d3d.tar.gz
llvm-66123626ad5497bfe3bfd14fea85468091ca8d3d.tar.bz2
llvm-66123626ad5497bfe3bfd14fea85468091ca8d3d.tar.xz
Add the NoUnwind function attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35260 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r--lib/VMCore/Type.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 7042faf2bb..63d90ceec9 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -1073,6 +1073,8 @@ std::string FunctionType::getParamAttrsText(ParameterAttributes Attr) {
Result += "sext ";
if (Attr & NoReturnAttribute)
Result += "noreturn ";
+ if (Attr & NoUnwindAttribute)
+ Result += "nounwind ";
if (Attr & InRegAttribute)
Result += "inreg ";
if (Attr & StructRetAttribute)