summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita89a113a2047a4c355b1ed65665afd3b592b2d18 (patch)
tree3f626fd6b38f794fe64ae6c3fed35aa2de81221b /llvm/lib/VMCore/Function.cpp
parent3783b46f9e5a687b68ef434feeb5d02477e00eb4 (diff)
downloadbcm5719-llvm-a89a113a2047a4c355b1ed65665afd3b592b2d18.tar.gz
bcm5719-llvm-a89a113a2047a4c355b1ed65665afd3b592b2d18.zip
Rename the 'const' parameter attribute to 'readnone',
and the 'pure' parameter attribute to 'readonly'. Names suggested by DannyB. llvm-svn: 44273
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r--llvm/lib/VMCore/Function.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp
index a011aaea338..6c293718626 100644
--- a/llvm/lib/VMCore/Function.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud