summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-02 23:58:19 +0000
committerOwen Anderson <resistor@mac.com>2009-07-02 23:58:19 +0000
commit39a7aed05023864ecd4dd2f33169abdf85f776ba (patch)
tree11a3b7ecf999c8f785749fdaf9397c2e1e7626c6 /llvm/lib
parent43d74cd9484e87c6301ad71f2dc46d0229d45532 (diff)
downloadbcm5719-llvm-39a7aed05023864ecd4dd2f33169abdf85f776ba.tar.gz
bcm5719-llvm-39a7aed05023864ecd4dd2f33169abdf85f776ba.zip
Fill in a few more missing accessors.
llvm-svn: 74739
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/LLVMContext.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/LLVMContext.cpp b/llvm/lib/VMCore/LLVMContext.cpp
index fd69c4c93f8..6af6ff65ebd 100644
--- a/llvm/lib/VMCore/LLVMContext.cpp
+++ b/llvm/lib/VMCore/LLVMContext.cpp
@@ -53,6 +53,12 @@ ConstantInt* LLVMContext::getConstantIntFalse() {
return ConstantInt::getFalse();
}
+Constant* LLVMContext::getConstantInt(const Type* Ty, uint64_t V,
+ bool isSigned) {
+ return ConstantInt::get(Ty, V, isSigned);
+}
+
+
ConstantInt* LLVMContext::getConstantInt(const IntegerType* Ty, uint64_t V,
bool isSigned) {
return ConstantInt::get(Ty, V, isSigned);
@@ -71,7 +77,7 @@ Constant* LLVMContext::getConstantInt(const Type* Ty, const APInt& V) {
return ConstantInt::get(Ty, V);
}
-ConstantInt* LLVMContext::getAllOnesConstantInt(const Type* Ty) {
+ConstantInt* LLVMContext::getConstantIntAllOnesValue(const Type* Ty) {
return ConstantInt::getAllOnesValue(Ty);
}
OpenPOWER on IntegriCloud