[llvm-commits] [poolalloc] r56684 - /poolalloc/trunk/include/poolalloc/PoolAllocate.h
John Criswell
criswell at uiuc.edu
Fri Sep 26 12:58:22 PDT 2008
Author: criswell
Date: Fri Sep 26 14:58:22 2008
New Revision: 56684
URL: http://llvm.org/viewvc/llvm-project?rev=56684&view=rev
Log:
Added a hasGraph() method to the pool allocation passes.
Modified:
poolalloc/trunk/include/poolalloc/PoolAllocate.h
Modified: poolalloc/trunk/include/poolalloc/PoolAllocate.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/poolalloc/PoolAllocate.h?rev=56684&r1=56683&r2=56684&view=diff
==============================================================================
--- poolalloc/trunk/include/poolalloc/PoolAllocate.h (original)
+++ poolalloc/trunk/include/poolalloc/PoolAllocate.h Fri Sep 26 14:58:22 2008
@@ -119,6 +119,13 @@
virtual const Type * getPoolType() {return 0;}
+ virtual bool hasDSGraph (const Function & F) const {
+ if (SAFECodeEnabled)
+ return TDGraphs->hasGraph (F);
+ else
+ return ECGraphs->hasGraph (F);
+ }
+
virtual DSGraph & getDSGraph (const Function & F) const {
if (SAFECodeEnabled)
return TDGraphs->getDSGraph (F);
More information about the llvm-commits
mailing list