Remove trailing whitespace

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176720 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael Ilseman
2013-03-08 21:03:09 +00:00
parent 768ed8b8c3
commit 9333ffb6db

View File

@ -8,7 +8,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// //
// This family of functions identifies calls to builtin functions that allocate // This family of functions identifies calls to builtin functions that allocate
// or free memory. // or free memory.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
@ -216,7 +216,7 @@ static Value *computeArraySize(const CallInst *CI, const DataLayout *TD,
return 0; return 0;
} }
/// isArrayMalloc - Returns the corresponding CallInst if the instruction /// isArrayMalloc - Returns the corresponding CallInst if the instruction
/// is a call to malloc whose array size can be determined and the array size /// is a call to malloc whose array size can be determined and the array size
/// is not constant 1. Otherwise, return NULL. /// is not constant 1. Otherwise, return NULL.
const CallInst *llvm::isArrayMalloc(const Value *I, const CallInst *llvm::isArrayMalloc(const Value *I,
@ -241,7 +241,7 @@ const CallInst *llvm::isArrayMalloc(const Value *I,
PointerType *llvm::getMallocType(const CallInst *CI, PointerType *llvm::getMallocType(const CallInst *CI,
const TargetLibraryInfo *TLI) { const TargetLibraryInfo *TLI) {
assert(isMallocLikeFn(CI, TLI) && "getMallocType and not malloc call"); assert(isMallocLikeFn(CI, TLI) && "getMallocType and not malloc call");
PointerType *MallocType = 0; PointerType *MallocType = 0;
unsigned NumOfBitCastUses = 0; unsigned NumOfBitCastUses = 0;
@ -276,7 +276,7 @@ Type *llvm::getMallocAllocatedType(const CallInst *CI,
return PT ? PT->getElementType() : 0; return PT ? PT->getElementType() : 0;
} }
/// getMallocArraySize - Returns the array size of a malloc call. If the /// getMallocArraySize - Returns the array size of a malloc call. If the
/// argument passed to malloc is a multiple of the size of the malloced type, /// argument passed to malloc is a multiple of the size of the malloced type,
/// then return that multiple. For non-array mallocs, the multiple is /// then return that multiple. For non-array mallocs, the multiple is
/// constant 1. Otherwise, return NULL for mallocs whose array size cannot be /// constant 1. Otherwise, return NULL for mallocs whose array size cannot be
@ -317,7 +317,7 @@ const CallInst *llvm::isFreeCall(const Value *I, const TargetLibraryInfo *TLI) {
return 0; return 0;
// Check free prototype. // Check free prototype.
// FIXME: workaround for PR5130, this will be obsolete when a nobuiltin // FIXME: workaround for PR5130, this will be obsolete when a nobuiltin
// attribute will exist. // attribute will exist.
FunctionType *FTy = Callee->getFunctionType(); FunctionType *FTy = Callee->getFunctionType();
if (!FTy->getReturnType()->isVoidTy()) if (!FTy->getReturnType()->isVoidTy())