summaryrefslogtreecommitdiff
path: root/include/llvm/Attributes.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-24 00:06:15 +0000
committerDevang Patel <dpatel@apple.com>2008-09-24 00:06:15 +0000
commit20bcaff6a7f93a9894f7233c449b016bafe93b26 (patch)
treed99b92af998a00799cf14a07d6040b5654b60cbe /include/llvm/Attributes.h
parentda43bcf624acb56a3d77bb5ae9a02728af032613 (diff)
downloadllvm-20bcaff6a7f93a9894f7233c449b016bafe93b26.tar.gz
llvm-20bcaff6a7f93a9894f7233c449b016bafe93b26.tar.bz2
llvm-20bcaff6a7f93a9894f7233c449b016bafe93b26.tar.xz
Put FN_NOTE_AlwaysInline and others in FnAttr namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Attributes.h')
-rw-r--r--include/llvm/Attributes.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h
index a503354567..0e41694469 100644
--- a/include/llvm/Attributes.h
+++ b/include/llvm/Attributes.h
@@ -78,12 +78,14 @@ inline Attributes constructAlignmentFromInt(unsigned i) {
std::string getAsString(Attributes Attrs);
} // end namespace ParamAttr
+namespace FnAttr {
/// Function notes are implemented as attributes stored at index ~0 in
/// parameter attribute list.
-const Attributes FN_NOTE_None = 0;
-const Attributes FN_NOTE_NoInline = 1<<0; // inline=never
-const Attributes FN_NOTE_AlwaysInline = 1<<1; // inline=always
-const Attributes FN_NOTE_OptimizeForSize = 1<<2; // opt_size
+const Attributes None = 0;
+const Attributes NoInline = 1<<0; // inline=never
+const Attributes AlwaysInline = 1<<1; // inline=always
+const Attributes OptimizeForSize = 1<<2; // opt_size
+} // end namespace FnAttr
/// This is just a pair of values to associate a set of parameter attributes
/// with a parameter index.