[llvm-commits] [poolalloc] r74174 - in /poolalloc/trunk: include/poolalloc_runtime/Support/SplayTree.h lib/DSA/Printer.cpp

John Criswell criswell at uiuc.edu
Thu Jun 25 07:32:29 PDT 2009


Author: criswell
Date: Thu Jun 25 09:32:15 2009
New Revision: 74174

URL: http://llvm.org/viewvc/llvm-project?rev=74174&view=rev
Log:
Updated to the new LLVM API for the GraphWriter class.
Added comments to a splay tree method.

Modified:
    poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h
    poolalloc/trunk/lib/DSA/Printer.cpp

Modified: poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h?rev=74174&r1=74173&r2=74174&view=diff

==============================================================================
--- poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h (original)
+++ poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h Thu Jun 25 09:32:15 2009
@@ -254,6 +254,10 @@
   //  start - The first valid address of the object.
   //  end   - The last valid address of the object.
   //
+  // Return value:
+  //  true  - The insert succeeded.
+  //  false - The insert failed.
+  //
   bool insert(void* start, void* end) {
     return 0 != Tree.__insert(start,end);
   }

Modified: poolalloc/trunk/lib/DSA/Printer.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/Printer.cpp?rev=74174&r1=74173&r2=74174&view=diff

==============================================================================
--- poolalloc/trunk/lib/DSA/Printer.cpp (original)
+++ poolalloc/trunk/lib/DSA/Printer.cpp Thu Jun 25 09:32:15 2009
@@ -120,7 +120,8 @@
     }
   }
 
-  static std::string getNodeLabel(const DSNode *Node, const DSGraph *Graph) {
+  static std::string
+  getNodeLabel(const DSNode *Node, const DSGraph *Graph, bool ShortNames) {
     return getCaption(Node, Graph);
   }
 
@@ -243,7 +244,7 @@
 }   // end namespace llvm
 
 void DSNode::print(std::ostream &O, const DSGraph *G) const {
-  GraphWriter<const DSGraph *> W(O, G);
+  GraphWriter<const DSGraph *> W(O, G, false);
   W.writeNode(this);
 }
 





More information about the llvm-commits mailing list