summaryrefslogtreecommitdiff
path: root/lib/VMCore/Type.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-01 04:02:06 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-01 04:02:06 +0000
commit9e57414e69345ea68afd23eb7c7e010940fe5866 (patch)
treec84497aa8fecea646b748dba96384e0b79a0f790 /lib/VMCore/Type.cpp
parentc0ba1bc49b2b544159425e3c4769a8bbf1635a3e (diff)
downloadllvm-9e57414e69345ea68afd23eb7c7e010940fe5866.tar.gz
llvm-9e57414e69345ea68afd23eb7c7e010940fe5866.tar.bz2
llvm-9e57414e69345ea68afd23eb7c7e010940fe5866.tar.xz
Reduce #includage by taking a method out of line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r--lib/VMCore/Type.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index be80b11039..7042faf2bb 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -972,6 +972,10 @@ bool IntegerType::isPowerOf2ByteWidth() const {
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 {