[llvm-commits] [poolalloc] r122737 - /poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Sun Jan 2 20:26:43 PST 2011
Author: aggarwa4
Date: Sun Jan 2 22:26:43 2011
New Revision: 122737
URL: http://llvm.org/viewvc/llvm-project?rev=122737&view=rev
Log:
Formatting changes. Remove dead code.
No functionality change.
Modified:
poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp
Modified: poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp?rev=122737&r1=122736&r2=122737&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp Sun Jan 2 22:26:43 2011
@@ -58,13 +58,12 @@
template <typename InstType, typename SetType>
void AddPoolUse(InstType &I, Value *PoolHandle, SetType &Set) {
- if (AllocaInst *AI=dyn_cast<AllocaInst>(PoolHandle->stripPointerCasts()))
+ if (AllocaInst *AI = dyn_cast<AllocaInst>(PoolHandle->stripPointerCasts()))
Set.insert(std::make_pair(AI, &I));
}
// FIXME: Factor out assumptions about c stdlib function names
void visitInstruction(Instruction &I);
- //void visitMallocInst(MallocInst &MI);
void visitAllocaInst(AllocaInst &MI);
void visitMallocCall(CallSite & CS);
void visitCallocCall(CallSite CS);
@@ -72,7 +71,6 @@
void visitMemAlignCall(CallSite CS);
void visitStrdupCall(CallSite CS);
void visitRuntimeCheck(CallSite CS);
- //void visitFreeInst(FreeInst &FI);
void visitFreeCall(CallSite &CS);
void visitCallSite(CallSite &CS);
void visitCallInst(CallInst &CI) {
More information about the llvm-commits
mailing list