[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp

Reid Spencer reid at x10sys.com
Wed Feb 28 20:02:24 PST 2007



Changes in directory llvm/lib/VMCore:

Type.cpp updated: 1.175 -> 1.176
---
Log message:

Reduce #includage by taking a method out of line.


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

 Type.cpp |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.175 llvm/lib/VMCore/Type.cpp:1.176
--- llvm/lib/VMCore/Type.cpp:1.175	Mon Feb 19 23:29:47 2007
+++ llvm/lib/VMCore/Type.cpp	Wed Feb 28 22:02:06 2007
@@ -972,6 +972,10 @@
   return (BitWidth > 7) && isPowerOf2_32(BitWidth);
 }
 
+APInt IntegerType::getMask() const {
+  return APInt::getAllOnesValue(getBitWidth());
+}
+
 // FunctionValType - Define a class to hold the key that goes into the TypeMap
 //
 namespace llvm {






More information about the llvm-commits mailing list