Submitted by:
Reviewed by:
declare getSizeType() const and fix typo in comment...

llvm-svn: 39376
This commit is contained in:
Steve Naroff 2007-04-02 23:01:44 +00:00
parent 7840336c91
commit 0f6256d0fa
2 changed files with 3 additions and 3 deletions

View File

@ -287,9 +287,9 @@ TypeRef ASTContext::getTagDeclType(TagDecl *Decl) {
}
/// getSizeType - Return the unique type for "size_t" (C99 7.17), the result
/// of the sizeof operator (C99 6.5.3.4p4). The value to target dependent and
/// of the sizeof operator (C99 6.5.3.4p4). The value is target dependent and
/// needs to agree with the definition in <stddef.h>.
TypeRef ASTContext::getSizeType() {
TypeRef ASTContext::getSizeType() const {
// On Darwin, size_t is defined as a "long unsigned int".
// FIXME: should derive from "Target".
return UnsignedLongTy;

View File

@ -81,7 +81,7 @@ public:
/// getSizeType - Return the unique type for "size_t" (C99 7.17), defined
/// in <stddef.h>. The sizeof operator requires this (C99 6.5.3.4p4).
TypeRef getSizeType();
TypeRef getSizeType() const;
private:
void InitBuiltinTypes();
void InitBuiltinType(TypeRef &R, BuiltinType::Kind K);