From a89a113a2047a4c355b1ed65665afd3b592b2d18 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Thu, 22 Nov 2007 20:23:04 +0000 Subject: Rename the 'const' parameter attribute to 'readnone', and the 'pure' parameter attribute to 'readonly'. Names suggested by DannyB. llvm-svn: 44273 --- llvm/lib/VMCore/Function.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/VMCore/Function.cpp') 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; } -- cgit v1.2.3