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 | ea09c697d7d1fa795f13d1c1476da3a6e788e2b6 (patch) | |
tree | 439c5a9a9ba86c1d16953b8910307949ccf1f3d1 /llvm/lib/VMCore/Function.cpp | |
parent | 2c6387803e61c49f38424fcd4141204f4c49a515 (diff) | |
download | bcm5719-llvm-ea09c697d7d1fa795f13d1c1476da3a6e788e2b6.tar.gz bcm5719-llvm-ea09c697d7d1fa795f13d1c1476da3a6e788e2b6.zip |
Add pure/const attributes. Documentation will follow.
llvm-svn: 44109
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r-- | llvm/lib/VMCore/Function.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index 3582b321504..3256d5b9f63 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/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; } |