[llvm-commits] [poolalloc] r48897 - /poolalloc/trunk/lib/PoolAllocate/PASimple.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Thu Mar 27 14:27:47 PDT 2008
Author: alenhar2
Date: Thu Mar 27 16:27:47 2008
New Revision: 48897
URL: http://llvm.org/viewvc/llvm-project?rev=48897&view=rev
Log:
make FuncInfos for each function
Modified:
poolalloc/trunk/lib/PoolAllocate/PASimple.cpp
Modified: poolalloc/trunk/lib/PoolAllocate/PASimple.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/PASimple.cpp?rev=48897&r1=48896&r2=48897&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PASimple.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PASimple.cpp Thu Mar 27 16:27:47 2008
@@ -72,8 +72,11 @@
// Now that all call targets are available, rewrite the function bodies of the
// clones.
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
- if (!I->isDeclaration())
+ if (!I->isDeclaration()) {
+ FuncInfo &FI =
+ FunctionInfo.insert(std::make_pair(&F, FuncInfo(F))).first->second;
ProcessFunctionBodySimple(*I);
+ }
return true;
}
More information about the llvm-commits
mailing list