diff options
author | Duncan Sands <baldrick@free.fr> | 2007-11-22 20:23:04 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-11-22 20:23:04 +0000 |
commit | a89a113a2047a4c355b1ed65665afd3b592b2d18 (patch) | |
tree | 3f626fd6b38f794fe64ae6c3fed35aa2de81221b /llvm/lib/VMCore | |
parent | 3783b46f9e5a687b68ef434feeb5d02477e00eb4 (diff) | |
download | bcm5719-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')
-rw-r--r-- | llvm/lib/VMCore/Function.cpp | 8 | ||||
-rw-r--r-- | llvm/lib/VMCore/Verifier.cpp | 4 |
2 files changed, 6 insertions, 6 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; } diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index 6597af101c0..1f726afa5d7 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/lib/VMCore/Verifier.cpp @@ -399,7 +399,7 @@ void Verifier::visitFunction(Function &F) { const uint16_t ParameterIncompatible = ParamAttr::NoReturn | ParamAttr::NoUnwind | - ParamAttr::Const | ParamAttr::Pure; + ParamAttr::ReadNone | ParamAttr::ReadOnly; const uint16_t MutuallyIncompatible[3] = { ParamAttr::ByVal | ParamAttr::InReg | @@ -407,7 +407,7 @@ void Verifier::visitFunction(Function &F) { ParamAttr::ZExt | ParamAttr::SExt, - ParamAttr::Pure | ParamAttr::Const + ParamAttr::ReadNone | ParamAttr::ReadOnly }; const uint16_t IntegerTypeOnly = |