summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/LLVMContext.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-05 22:41:43 +0000
committerOwen Anderson <resistor@mac.com>2009-07-05 22:41:43 +0000
commite70b637033a74963187ad115795e9c575baaa415 (patch)
treea1e2bd702fdfabdde98c47dced231fece7ccdb31 /llvm/lib/VMCore/LLVMContext.cpp
parentd687b0380c145ad5ec6b8205e92c41e5d914e26a (diff)
downloadbcm5719-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.cpp8
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) {
OpenPOWER on IntegriCloud