diff options
| author | Victor Hernandez <vhernandez@apple.com> | 2009-11-06 01:33:24 +0000 |
|---|---|---|
| committer | Victor Hernandez <vhernandez@apple.com> | 2009-11-06 01:33:24 +0000 |
| commit | df98761d08ae091420b7e9c1366de7684400fc36 (patch) | |
| tree | 19dd0e96430169e3c197a4817e5e55f3d2ea277d /include | |
| parent | 465c3bed165dc76452606ea10a34ae2ef6033e8a (diff) | |
| download | external_llvm-df98761d08ae091420b7e9c1366de7684400fc36.zip external_llvm-df98761d08ae091420b7e9c1366de7684400fc36.tar.gz external_llvm-df98761d08ae091420b7e9c1366de7684400fc36.tar.bz2 | |
Revert r86077 because it caused crashes in 179.art and 175.vpr on ARM
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
| -rw-r--r-- | include/llvm/Analysis/MemoryBuiltins.h | 14 | ||||
| -rw-r--r-- | include/llvm/Instructions.h | 5 |
2 files changed, 7 insertions, 12 deletions
diff --git a/include/llvm/Analysis/MemoryBuiltins.h b/include/llvm/Analysis/MemoryBuiltins.h index fde7dc6..5fd0bb0 100644 --- a/include/llvm/Analysis/MemoryBuiltins.h +++ b/include/llvm/Analysis/MemoryBuiltins.h @@ -50,17 +50,13 @@ const CallInst* isArrayMalloc(const Value* I, LLVMContext &Context, const TargetData* TD); /// getMallocType - Returns the PointerType resulting from the malloc call. -/// The PointerType depends on the number of bitcast uses of the malloc call: -/// 0: PointerType is the malloc calls' return type. -/// 1: PointerType is the bitcast's result type. -/// >1: Unique PointerType cannot be determined, return NULL. +/// This PointerType is the result type of the call's only bitcast use. +/// If there is no unique bitcast use, then return NULL. const PointerType* getMallocType(const CallInst* CI); -/// getMallocAllocatedType - Returns the Type allocated by malloc call. -/// The Type depends on the number of bitcast uses of the malloc call: -/// 0: PointerType is the malloc calls' return type. -/// 1: PointerType is the bitcast's result type. -/// >1: Unique PointerType cannot be determined, return NULL. +/// getMallocAllocatedType - Returns the Type allocated by malloc call. This +/// Type is the result type of the call's only bitcast use. If there is no +/// unique bitcast use, then return NULL. const Type* getMallocAllocatedType(const CallInst* CI); /// getMallocArraySize - Returns the array size of a malloc call. If the diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 5b48e1a..28854df 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -899,12 +899,11 @@ public: /// 3. Bitcast the result of the malloc call to the specified type. static Instruction *CreateMalloc(Instruction *InsertBefore, const Type *IntPtrTy, const Type *AllocTy, - Value *AllocSize, Value *ArraySize = 0, + Value *ArraySize = 0, const Twine &Name = ""); static Instruction *CreateMalloc(BasicBlock *InsertAtEnd, const Type *IntPtrTy, const Type *AllocTy, - Value *AllocSize, Value *ArraySize = 0, - Function* MallocF = 0, + Value *ArraySize = 0, 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); |
