summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-31 17:39:07 +0000
committerOwen Anderson <resistor@mac.com>2009-07-31 17:39:07 +0000
commit5defacc6e605f4651c6300237cef8e9bb2eb6d0e (patch)
tree083068ba3cfc6652b20e6dbe0dbcfe207cc00f6e /include
parented47a0409b187d5dcd2bddfd054326fc809d00ae (diff)
downloadexternal_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.h3
-rw-r--r--include/llvm/LLVMContext.h4
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);