aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ParameterAttributes.h
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 /include/llvm/ParameterAttributes.h
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 'include/llvm/ParameterAttributes.h')
-rw-r--r--include/llvm/ParameterAttributes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ParameterAttributes.h b/include/llvm/ParameterAttributes.h
index 5d3ef9a..4c48d87 100644
--- a/include/llvm/ParameterAttributes.h
+++ b/include/llvm/ParameterAttributes.h
@@ -39,8 +39,8 @@ enum Attributes {
NoAlias = 1 << 6, ///< Considered to not alias after call
ByVal = 1 << 7, ///< Pass structure by value
Nest = 1 << 8, ///< Nested function static chain
- Pure = 1 << 9, ///< Function is pure
- Const = 1 << 10 ///< Function is const
+ ReadNone = 1 << 9, ///< Function does not access memory
+ ReadOnly = 1 << 10 ///< Function only reads from memory
};
}