diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-31 17:39:07 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-31 17:39:07 +0000 |
commit | 5defacc6e605f4651c6300237cef8e9bb2eb6d0e (patch) | |
tree | 083068ba3cfc6652b20e6dbe0dbcfe207cc00f6e /include | |
parent | ed47a0409b187d5dcd2bddfd054326fc809d00ae (diff) | |
download | external_llvm-5defacc6e605f4651c6300237cef8e9bb2eb6d0e.zip external_llvm-5defacc6e605f4651c6300237cef8e9bb2eb6d0e.tar.gz external_llvm-5defacc6e605f4651c6300237cef8e9bb2eb6d0e.tar.bz2 |
Move getTrue() and getFalse() to 2.5-like APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Constants.h | 3 | ||||
-rw-r--r-- | include/llvm/LLVMContext.h | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index dfcc707..f6989fa 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -56,6 +56,9 @@ protected: return User::operator new(s, 0); } public: + static ConstantInt* getTrue(LLVMContext &Context); + static ConstantInt* getFalse(LLVMContext &Context); + /// If Ty is a vector type, return a Constant with a splat of the given /// value. Otherwise return a ConstantInt for the given value. static Constant* get(const Type* Ty, uint64_t V, bool isSigned = false); diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h index ab2df1b..91312f7 100644 --- a/include/llvm/LLVMContext.h +++ b/include/llvm/LLVMContext.h @@ -73,10 +73,6 @@ public: /// @brief Get the all ones value Constant* getAllOnesValue(const Type* Ty); - // ConstantInt accessors - ConstantInt* getTrue(); - ConstantInt* getFalse(); - // MDNode accessors MDNode* getMDNode(Value* const* Vals, unsigned NumVals); |