aboutsummaryrefslogtreecommitdiff
path: root/include/llvm
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 /include/llvm
parentc0ba1bc49b2b544159425e3c4769a8bbf1635a3e (diff)
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 'include/llvm')
-rw-r--r--include/llvm/DerivedTypes.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h
index 13e127a612..29d7ede823 100644
--- a/include/llvm/DerivedTypes.h
+++ b/include/llvm/DerivedTypes.h
@@ -19,7 +19,6 @@
#define LLVM_DERIVED_TYPES_H
#include "llvm/Type.h"
-#include "llvm/ADT/APInt.h"
namespace llvm {
@@ -31,6 +30,7 @@ class StructValType;
class PointerValType;
class VectorValType;
class IntegerValType;
+class APInt;
class DerivedType : public Type {
friend class Type;
@@ -112,9 +112,7 @@ public:
/// For example, this is 0xFF for an 8 bit integer, 0xFFFF for i16, etc.
/// @returns a bit mask with ones set for all the bits of this type.
/// @brief Get a bit mask for this type.
- APInt getMask() const {
- return APInt::getAllOnesValue(getBitWidth());
- }
+ APInt getMask() const;
/// This method determines if the width of this IntegerType is a power-of-2
/// in terms of 8 bit bytes.