diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-16 18:04:31 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-16 18:04:31 +0000 |
commit | 001dbfebcbbded8c8e74b19e838b50da2b6c6fb5 (patch) | |
tree | 1dc61249ea3e7ecc74b897c4c6014f9bbbc341ac /include/llvm/LLVMContext.h | |
parent | f96db468fcf62d671cda99b68b6cfd3f2dc0b839 (diff) |
Move the ConstantInt uniquing table into LLVMContextImpl. This exposed a number of issues in
our current context-passing stuff, which is also fixed here
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/LLVMContext.h')
-rw-r--r-- | include/llvm/LLVMContext.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h index 552e7992c6..4aa2c20ec2 100644 --- a/include/llvm/LLVMContext.h +++ b/include/llvm/LLVMContext.h @@ -93,6 +93,8 @@ public: ConstantInt* getConstantIntSigned(const IntegerType* Ty, int64_t V); Constant *getConstantIntSigned(const Type *Ty, int64_t V); + /// Return a ConstantInt with the specified value and an implied Type. The + /// type is the integer type that corresponds to the bit width of the value. ConstantInt* getConstantInt(const APInt& V); /// If Ty is a vector type, return a Constant with a splat of the given |