[llvm-commits] [poolalloc] r49118 - /poolalloc/trunk/include/poolalloc/PoolAllocate.h

John Criswell criswell at uiuc.edu
Wed Apr 2 14:28:22 PDT 2008


Author: criswell
Date: Wed Apr  2 16:28:22 2008
New Revision: 49118

URL: http://llvm.org/viewvc/llvm-project?rev=49118&view=rev
Log:
Added functions so that pool allocation is directly queried for the DSGraph
information.  This will make it simpler for PoolAllocateSimple to present a
proper DSGraph to SAFECode.

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=49118&r1=49117&r2=49118&view=diff

==============================================================================
--- poolalloc/trunk/include/poolalloc/PoolAllocate.h (original)
+++ poolalloc/trunk/include/poolalloc/PoolAllocate.h Wed Apr  2 16:28:22 2008
@@ -218,6 +218,14 @@
 #endif
   }
 
+  virtual DSGraph & getDSGraph (const Function & F) const {
+    return ECGraphs->getDSGraph (F);
+  }
+
+  virtual DSGraph & getGlobalsGraph () const {
+    return ECGraphs->getGlobalsGraph ();
+  }
+
   virtual Value * getGlobalPool (const DSNode * Node) {
     std::map<const DSNode *, Value *>::iterator I = GlobalNodes.find (Node);
     if (I == GlobalNodes.end())





More information about the llvm-commits mailing list