aboutsummaryrefslogtreecommitdiffstats
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
commit153afcae9b32c19724f869327822a53535bbfab0 (patch)
treed19212cba4a7a319cf06bfca831b86864b617d33 /lib/VMCore/LLVMContext.cpp
parenta7431ad78945f359da90a4ed3abdbe1c0d659610 (diff)
downloadexternal_llvm-153afcae9b32c19724f869327822a53535bbfab0.zip
external_llvm-153afcae9b32c19724f869327822a53535bbfab0.tar.gz
external_llvm-153afcae9b32c19724f869327822a53535bbfab0.tar.bz2
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 4d847a7..bb3762b 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,