summaryrefslogtreecommitdiff
path: root/include/llvm/Support/AlignOf.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-10-30 05:14:01 +0000
committerChris Lattner <sabre@nondot.org>2010-10-30 05:14:01 +0000
commit16c3b647eb100fe404ee65f106d563ddef6c74b7 (patch)
tree14f84f8de4f8628bcbce11171bab3d89c8237cae /include/llvm/Support/AlignOf.h
parent9a82e7027549bfc8655b090b37e709baa3cd3240 (diff)
downloadllvm-16c3b647eb100fe404ee65f106d563ddef6c74b7.tar.gz
llvm-16c3b647eb100fe404ee65f106d563ddef6c74b7.tar.bz2
llvm-16c3b647eb100fe404ee65f106d563ddef6c74b7.tar.xz
Rename alignof -> alignOf to avoid irritating C++'0x compilers,
PR8423, patch by nobled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/AlignOf.h')
-rw-r--r--include/llvm/Support/AlignOf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/AlignOf.h b/include/llvm/Support/AlignOf.h
index 6a7a1a6bd2..979e5975aa 100644
--- a/include/llvm/Support/AlignOf.h
+++ b/include/llvm/Support/AlignOf.h
@@ -49,12 +49,12 @@ struct AlignOf {
};
-/// alignof - A templated function that returns the mininum alignment of
+/// alignOf - A templated function that returns the mininum alignment of
/// of a type. This provides no extra functionality beyond the AlignOf
/// class besides some cosmetic cleanliness. Example usage:
-/// alignof<int>() returns the alignment of an int.
+/// alignOf<int>() returns the alignment of an int.
template <typename T>
-static inline unsigned alignof() { return AlignOf<T>::Alignment; }
+static inline unsigned alignOf() { return AlignOf<T>::Alignment; }
} // end namespace llvm
#endif