[llvm-commits] CVS: llvm/include/llvm/Constants.h

Chris Lattner sabre at nondot.org
Mon Apr 2 18:41:51 PDT 2007



Changes in directory llvm/include/llvm:

Constants.h updated: 1.143 -> 1.144
---
Log message:

add a helper function to constantint.


---
Diffs of the changes:  (+3 -0)

 Constants.h |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.143 llvm/include/llvm/Constants.h:1.144
--- llvm/include/llvm/Constants.h:1.143	Fri Mar 30 11:50:28 2007
+++ llvm/include/llvm/Constants.h	Mon Apr  2 20:41:34 2007
@@ -52,6 +52,9 @@
   inline const APInt& getValue() const {
     return Val;
   }
+  
+  /// getBitWidth - Return the bitwidth of this constant.
+  unsigned getBitWidth() const { return Val.getBitWidth(); }
 
   /// Return the constant as a 64-bit unsigned integer value after it
   /// has been zero extended as appropriate for the type of this constant. Note






More information about the llvm-commits mailing list