[cfe-commits] r39471 - /cfe/cfe/trunk/include/clang/AST/ASTContext.h
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:44:45 PDT 2007
Author: clattner
Date: Wed Jul 11 11:44:45 2007
New Revision: 39471
URL: http://llvm.org/viewvc/llvm-project?rev=39471&view=rev
Log:
add getIntegerBitwidth method.
Modified:
cfe/cfe/trunk/include/clang/AST/ASTContext.h
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=39471&r1=39470&r2=39471&view=diff
==============================================================================
--- cfe/cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/cfe/trunk/include/clang/AST/ASTContext.h Wed Jul 11 11:44:45 2007
@@ -82,6 +82,11 @@
/// 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).
QualType getSizeType() const;
+
+ /// getIntegerBitwidth - Return the bitwidth of the specified integer type
+ /// according to the target. 'Loc' specifies the source location that
+ /// requires evaluation of this property.
+ unsigned getIntegerBitwidth(QualType T, SourceLocation Loc);
// maxIntegerType - Returns the highest ranked integer type. Handles 3
// different type combos: unsigned/unsigned, signed/signed, signed/unsigned.
More information about the cfe-commits
mailing list