aboutsummaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm')
-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 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);
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h
index ab2df1b70a..91312f73a8 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);