forked from OSchip/llvm-project
Bug #:
Submitted by: Reviewed by: declare getSizeType() const and fix typo in comment... llvm-svn: 39376
This commit is contained in:
parent
7840336c91
commit
0f6256d0fa
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue