diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-27 02:22:42 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-27 02:22:42 +0000 |
| commit | f270c1ba27c127f6bd78f046e74e371856fe81c6 (patch) | |
| tree | 057aa70a9fe92528ef779f3ca32171f233454b66 | |
| parent | a8ac3fca6f31ece5f9675434f1ddace6cd912c09 (diff) | |
Rename getNullConstant to getNullValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2321 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | include/llvm/Constants.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 95f9a265d2..1253974da0 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -5,8 +5,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_CONSTPOOLVALS_H -#define LLVM_CONSTPOOLVALS_H +#ifndef LLVM_CONSTANT_VALS_H +#define LLVM_CONSTANT_VALS_H #include "llvm/User.h" #include "Support/DataTypes.h" @@ -39,10 +39,10 @@ public: virtual void setName(const std::string &name, SymbolTable *ST = 0); // Static constructor to get a '0' constant of arbitrary type... - static Constant *getNullConstant(const Type *Ty); + static Constant *getNullValue(const Type *Ty); // isNullValue - Return true if this is the value that would be returned by - // getNullConstant. + // getNullValue. virtual bool isNullValue() const = 0; virtual void print(std::ostream &O) const; @@ -81,7 +81,7 @@ public: inline bool getValue() const { return Val; } // isNullValue - Return true if this is the value that would be returned by - // getNullConstant. + // getNullValue. virtual bool isNullValue() const { return this == False; } // Methods for support type inquiry through isa, cast, and dyn_cast: @@ -125,7 +125,7 @@ public: static ConstantInt *get(const Type *Ty, unsigned char V); // isNullValue - Return true if this is the value that would be returned by - // getNullConstant. + // getNullValue. virtual bool isNullValue() const { return Val.Unsigned == 0; } // Methods for support type inquiry through isa, cast, and dyn_cast: @@ -198,7 +198,7 @@ public: inline double getValue() const { return Val; } // isNullValue - Return true if this is the value that would be returned by - // getNullConstant. + // getNullValue. virtual bool isNullValue() const { return Val == 0; } // Methods for support type inquiry through isa, cast, and dyn_cast: @@ -231,7 +231,7 @@ public: inline const std::vector<Use> &getValues() const { return Operands; } // isNullValue - Return true if this is the value that would be returned by - // getNullConstant. + // getNullValue. virtual bool isNullValue() const { return false; } // Methods for support type inquiry through isa, cast, and dyn_cast: @@ -264,7 +264,7 @@ public: inline const std::vector<Use> &getValues() const { return Operands; } // isNullValue - Return true if this is the value that would be returned by - // getNullConstant. + // getNullValue. virtual bool isNullValue() const { return false; } // Methods for support type inquiry through isa, cast, and dyn_cast: @@ -293,7 +293,7 @@ public: } // isNullValue - Return true if this is the value that would be returned by - // getNullConstant. + // getNullValue. virtual bool isNullValue() const { return false; } // Methods for support type inquiry through isa, cast, and dyn_cast: @@ -316,7 +316,7 @@ public: static ConstantPointerNull *get(const PointerType *T); // isNullValue - Return true if this is the value that would be returned by - // getNullConstant. + // getNullValue. virtual bool isNullValue() const { return true; } // Methods for support type inquiry through isa, cast, and dyn_cast: |
