diff options
author | Chris Lattner <sabre@nondot.org> | 2010-07-12 00:57:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-07-12 00:57:28 +0000 |
commit | 5a30a8574cbcd3b385b1e8681c6a5c45856efb38 (patch) | |
tree | 5cde2f2fe28ceb143ff2aa7a92d34c913b01a038 /include/llvm/Instructions.h | |
parent | 0bfd09201efdbba5fb70039ebf1c8aefc673cde1 (diff) | |
download | external_llvm-5a30a8574cbcd3b385b1e8681c6a5c45856efb38.tar.gz external_llvm-5a30a8574cbcd3b385b1e8681c6a5c45856efb38.tar.bz2 external_llvm-5a30a8574cbcd3b385b1e8681c6a5c45856efb38.zip |
make the prototypes for CreateMalloc and CreateFree more consistent. Patch
by Hans Vandierendonck from PR7605
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r-- | include/llvm/Instructions.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index a18a713164..078bf6862f 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -922,6 +922,7 @@ public: static Instruction *CreateMalloc(Instruction *InsertBefore, const Type *IntPtrTy, const Type *AllocTy, Value *AllocSize, Value *ArraySize = 0, + Function* MallocF = 0, const Twine &Name = ""); static Instruction *CreateMalloc(BasicBlock *InsertAtEnd, const Type *IntPtrTy, const Type *AllocTy, @@ -929,7 +930,7 @@ public: Function* MallocF = 0, const Twine &Name = ""); /// CreateFree - Generate the IR for a call to the builtin free function. - static void CreateFree(Value* Source, Instruction *InsertBefore); + static Instruction* CreateFree(Value* Source, Instruction *InsertBefore); static Instruction* CreateFree(Value* Source, BasicBlock *InsertAtEnd); ~CallInst(); |