X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FInstructions.h;h=f2832c8c2595fabaa24270449adbb068288e4061;hb=528700863adefca8de461ce28a7d903729fb96b4;hp=fbee2af81cf0c78442b22f768771dd265208b3be;hpb=88d9839d07a6b5a03484d664913de0f2b33d3bff;p=oota-llvm.git diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index fbee2af81cf..f2832c8c259 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -1044,7 +1044,7 @@ public: const Twine &Name = ""); static Value *CreateMalloc(BasicBlock *InsertAtEnd, const Type *IntPtrTy, const Type *AllocTy, Value *ArraySize = 0, - const Twine &Name = ""); + Function* MallocF = 0, const Twine &Name = ""); ~CallInst(); @@ -1149,6 +1149,11 @@ public: const Value *getCalledValue() const { return Op<0>(); } Value *getCalledValue() { return Op<0>(); } + /// setCalledFunction - Set the function called + void setCalledFunction(Value* Fn) { + Op<0>() = Fn; + } + // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const CallInst *) { return true; } static inline bool classof(const Instruction *I) {