summaryrefslogtreecommitdiff
path: root/include/llvm/Constants.h
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/llvm/Constants.h
parented47a0409b187d5dcd2bddfd054326fc809d00ae (diff)
downloadllvm-5defacc6e605f4651c6300237cef8e9bb2eb6d0e.tar.gz
llvm-5defacc6e605f4651c6300237cef8e9bb2eb6d0e.tar.bz2
llvm-5defacc6e605f4651c6300237cef8e9bb2eb6d0e.tar.xz
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/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index dfcc707b5e..f6989fae62 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);