diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-05 22:41:43 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-05 22:41:43 +0000 |
commit | 0a205a459884ec745df1c529396dd921f029dafd (patch) | |
tree | 905109491ef6c2ea3d99d01fc48af9c2c633e645 /lib/VMCore/LLVMContext.cpp | |
parent | db882950f3bcf7f710843610e917988daeafffc2 (diff) | |
download | llvm-0a205a459884ec745df1c529396dd921f029dafd.tar.gz llvm-0a205a459884ec745df1c529396dd921f029dafd.tar.bz2 llvm-0a205a459884ec745df1c529396dd921f029dafd.tar.xz |
More LLVMContext-ification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74807 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContext.cpp')
-rw-r--r-- | lib/VMCore/LLVMContext.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp index fe2cb7bf19..a96d2d9ecf 100644 --- a/lib/VMCore/LLVMContext.cpp +++ b/lib/VMCore/LLVMContext.cpp @@ -374,6 +374,10 @@ Constant* LLVMContext::getConstantExprInsertValue(Constant* Agg, Constant* Val, return ConstantExpr::getInsertValue(Agg, Val, IdxList, NumIdx); } +Constant* LLVMContext::getConstantExprSizeOf(const Type* Ty) { + return ConstantExpr::getSizeOf(Ty); +} + Constant* LLVMContext::getZeroValueForNegation(const Type* Ty) { return ConstantExpr::getZeroValueForNegationExpr(Ty); } @@ -428,6 +432,10 @@ MDString* LLVMContext::getMDString(const std::string &Str) { } // FunctionType accessors +FunctionType* LLVMContext::getFunctionType(const Type* Result, bool isVarArg) { + return FunctionType::get(Result, isVarArg); +} + FunctionType* LLVMContext::getFunctionType(const Type* Result, const std::vector<const Type*>& Params, bool isVarArg) { |