From ea09c697d7d1fa795f13d1c1476da3a6e788e2b6 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Wed, 14 Nov 2007 09:52:30 +0000 Subject: Add pure/const attributes. Documentation will follow. llvm-svn: 44109 --- llvm/lib/VMCore/Function.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/VMCore/Function.cpp') 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; } -- cgit v1.2.3