From f59d75c35ef46fb7603bd1f2da228040a74c152f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 20 May 2007 23:50:29 +0000 Subject: [PATCH] add getIntegerBitwidth method. llvm-svn: 39471 --- clang/include/clang/AST/ASTContext.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h index 5ece13a4bc8c..d9ba013e4113 100644 --- a/clang/include/clang/AST/ASTContext.h +++ b/clang/include/clang/AST/ASTContext.h @@ -82,6 +82,11 @@ public: /// getSizeType - Return the unique type for "size_t" (C99 7.17), defined /// in . 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.