diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-11-14 09:52:30 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-11-14 09:52:30 +0000 |
commit | 0adb7b41e7715d47089a471ec2244348cd32bb68 (patch) | |
tree | 8cebb7acc3eca8f9ae8a7a5a3a0554070941dc81 /lib/VMCore/Function.cpp | |
parent | 9de1934099f4eedaeb2f3a023411b2cd3e0e1eae (diff) | |
download | external_llvm-0adb7b41e7715d47089a471ec2244348cd32bb68.zip external_llvm-0adb7b41e7715d47089a471ec2244348cd32bb68.tar.gz external_llvm-0adb7b41e7715d47089a471ec2244348cd32bb68.tar.bz2 |
Add pure/const attributes. Documentation will follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 3582b32..3256d5b 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -108,6 +108,10 @@ ParamAttrsList::getParamAttrsText(uint16_t Attrs) { Result += "byval "; if (Attrs & ParamAttr::Nest) Result += "nest "; + if (Attrs & ParamAttr::Pure) + Result += "pure "; + if (Attrs & ParamAttr::Const) + Result += "const "; return Result; } |