aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-11-22 20:23:04 +0000
committerDuncan Sands <baldrick@free.fr>2007-11-22 20:23:04 +0000
commited4a2f168873527e1737deaa7a0c6c045a2cff7d (patch)
tree059e19141a8d11daa4606a65b06ffc2d817dc166 /lib/VMCore/Function.cpp
parent83bb0055fdac3c6234c4178cd429e6a917d06c4e (diff)
downloadexternal_llvm-ed4a2f168873527e1737deaa7a0c6c045a2cff7d.zip
external_llvm-ed4a2f168873527e1737deaa7a0c6c045a2cff7d.tar.gz
external_llvm-ed4a2f168873527e1737deaa7a0c6c045a2cff7d.tar.bz2
Rename the 'const' parameter attribute to 'readnone',
and the 'pure' parameter attribute to 'readonly'. Names suggested by DannyB. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r--lib/VMCore/Function.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp
index a011aae..6c29371 100644
--- a/lib/VMCore/Function.cpp
+++ b/lib/VMCore/Function.cpp
@@ -108,10 +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 ";
+ if (Attrs & ParamAttr::ReadNone)
+ Result += "readnone ";
+ if (Attrs & ParamAttr::ReadOnly)
+ Result += "readonly ";
return Result;
}