summaryrefslogtreecommitdiff
path: root/lib/VMCore/LLVMContext.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-21 02:47:59 +0000
committerOwen Anderson <resistor@mac.com>2009-07-21 02:47:59 +0000
commitf53c371983908f02678b0e12c5d18466dcc70ffd (patch)
treed19212cba4a7a319cf06bfca831b86864b617d33 /lib/VMCore/LLVMContext.cpp
parent7239b516940fc134f895f6480e1b15346f40f75b (diff)
downloadllvm-f53c371983908f02678b0e12c5d18466dcc70ffd.tar.gz
llvm-f53c371983908f02678b0e12c5d18466dcc70ffd.tar.bz2
llvm-f53c371983908f02678b0e12c5d18466dcc70ffd.tar.xz
Move a bit more state over to the LLVMContext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContext.cpp')
-rw-r--r--lib/VMCore/LLVMContext.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp
index 4d847a7102..bb3762bd81 100644
--- a/lib/VMCore/LLVMContext.cpp
+++ b/lib/VMCore/LLVMContext.cpp
@@ -81,11 +81,15 @@ UndefValue* LLVMContext::getUndef(const Type* Ty) {
// ConstantInt accessors.
ConstantInt* LLVMContext::getConstantIntTrue() {
- return ConstantInt::getTrue();
+ assert(this && "Context not initialized!");
+ assert(pImpl && "Context not initialized!");
+ return pImpl->getConstantIntTrue();
}
ConstantInt* LLVMContext::getConstantIntFalse() {
- return ConstantInt::getFalse();
+ assert(this && "Context not initialized!");
+ assert(pImpl && "Context not initialized!");
+ return pImpl->getConstantIntFalse();
}
Constant* LLVMContext::getConstantInt(const Type* Ty, uint64_t V,