[cfe-commits] r39376 - in /cfe/cfe/trunk: AST/ASTContext.cpp include/clang/AST/ASTContext.h
Steve Naroff
snaroff at apple.com
Wed Jul 11 09:43:45 PDT 2007
Author: snaroff
Date: Wed Jul 11 11:43:45 2007
New Revision: 39376
URL: http://llvm.org/viewvc/llvm-project?rev=39376&view=rev
Log:
Bug #:
Submitted by:
Reviewed by:
declare getSizeType() const and fix typo in comment...
Modified:
cfe/cfe/trunk/AST/ASTContext.cpp
cfe/cfe/trunk/include/clang/AST/ASTContext.h
Modified: cfe/cfe/trunk/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/ASTContext.cpp?rev=39376&r1=39375&r2=39376&view=diff
==============================================================================
--- cfe/cfe/trunk/AST/ASTContext.cpp (original)
+++ cfe/cfe/trunk/AST/ASTContext.cpp Wed Jul 11 11:43:45 2007
@@ -287,9 +287,9 @@
}
/// 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;
Modified: cfe/cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/AST/ASTContext.h?rev=39376&r1=39375&r2=39376&view=diff
==============================================================================
--- cfe/cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/cfe/trunk/include/clang/AST/ASTContext.h Wed Jul 11 11:43:45 2007
@@ -81,7 +81,7 @@
/// 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);
More information about the cfe-commits
mailing list