diff options
author | Enea Zaffanella <zaffanella@cs.unipr.it> | 2013-01-26 17:08:37 +0000 |
---|---|---|
committer | Enea Zaffanella <zaffanella@cs.unipr.it> | 2013-01-26 17:08:37 +0000 |
commit | f11ceb68972cd57da6b9c6d9488cf02c6cb85e43 (patch) | |
tree | d2206e5f4d64834393d400d41971faa27d7f3242 /clang/lib/AST/ASTContext.cpp | |
parent | 2d443e94b4eb07facc7170e16a057537104eba22 (diff) | |
download | bcm5719-llvm-f11ceb68972cd57da6b9c6d9488cf02c6cb85e43.tar.gz bcm5719-llvm-f11ceb68972cd57da6b9c6d9488cf02c6cb85e43.zip |
Added ASTContext methods getIntPtrType and getUIntPtrType.
llvm-svn: 173581
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 1d103f11296..7ba64e32f35 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -3589,6 +3589,14 @@ QualType ASTContext::getUnsignedWCharType() const { return UnsignedIntTy; } +QualType ASTContext::getIntPtrType() const { + return getFromTargetType(Target->getIntPtrType()); +} + +QualType ASTContext::getUIntPtrType() const { + return getCorrespondingUnsignedType(getIntPtrType()); +} + /// getPointerDiffType - Return the unique type for "ptrdiff_t" (C99 7.17) /// defined in <stddef.h>. Pointer - pointer requires this (C99 6.5.6p9). QualType ASTContext::getPointerDiffType() const { |