[llvm-commits] CVS: llvm/include/llvm/DerivedTypes.h
Reid Spencer
reid at x10sys.com
Wed Feb 28 20:02:25 PST 2007
Changes in directory llvm/include/llvm:
DerivedTypes.h updated: 1.85 -> 1.86
---
Log message:
Reduce #includage by taking a method out of line.
---
Diffs of the changes: (+2 -4)
DerivedTypes.h | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
Index: llvm/include/llvm/DerivedTypes.h
diff -u llvm/include/llvm/DerivedTypes.h:1.85 llvm/include/llvm/DerivedTypes.h:1.86
--- llvm/include/llvm/DerivedTypes.h:1.85 Wed Feb 28 20:25:03 2007
+++ llvm/include/llvm/DerivedTypes.h Wed Feb 28 22:02:06 2007
@@ -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 PointerValType;
class VectorValType;
class IntegerValType;
+class APInt;
class DerivedType : public Type {
friend class Type;
@@ -112,9 +112,7 @@
/// 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.
More information about the llvm-commits
mailing list