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 | e70b637033a74963187ad115795e9c575baaa415 (patch) | |
tree | a1e2bd702fdfabdde98c47dced231fece7ccdb31 /llvm/lib/VMCore/LLVMContext.cpp | |
parent | d687b0380c145ad5ec6b8205e92c41e5d914e26a (diff) | |
download | bcm5719-llvm-e70b637033a74963187ad115795e9c575baaa415.tar.gz bcm5719-llvm-e70b637033a74963187ad115795e9c575baaa415.zip |
More LLVMContext-ification.
llvm-svn: 74807
Diffstat (limited to 'llvm/lib/VMCore/LLVMContext.cpp')
-rw-r--r-- | llvm/lib/VMCore/LLVMContext.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/LLVMContext.cpp b/llvm/lib/VMCore/LLVMContext.cpp index fe2cb7bf196..a96d2d9ecf7 100644 --- a/llvm/lib/VMCore/LLVMContext.cpp +++ b/llvm/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) { |