Fixed comment on top of DSNode.h, added note to DSSupport.h as to why
authorMisha Brukman <brukman+llvm@gmail.com>
Sat, 2 Nov 2002 21:18:53 +0000 (21:18 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Sat, 2 Nov 2002 21:18:53 +0000 (21:18 +0000)
functions were split out from DSNode class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4509 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DSNode.h
include/llvm/Analysis/DSSupport.h
include/llvm/Analysis/DataStructure/DSNode.h
include/llvm/Analysis/DataStructure/DSSupport.h

index 74fd5afe532c3fa15eec50764c9e7ee8b7f2a0e7..12d2cbc2bd41025f83a6fbef2c1b12a05b4a7c26 100644 (file)
@@ -1,6 +1,6 @@
-//===- DSSupport.h - Support for datastructure graphs -----------*- C++ -*-===//
+//===- DSNode.h - Node definition for datastructure graphs ------*- C++ -*-===//
 //
-// Support for graph nodes, call sites, and types.
+// Data structure graph nodes and some implementation of DSNodeHandle.
 //
 //===----------------------------------------------------------------------===//
 
index b3c3ed02965c52cb2f161a9ef48351a99c6af499..ae1e815ba792072844fc6f7450ecba8731f34b12 100644 (file)
@@ -28,6 +28,10 @@ class DSNodeIterator;          // Data structure graph traversal iterator
 /// graph from getting out of date.  This class represents a "pointer" in the
 /// graph, whose destination is an indexed offset into a node.
 ///
+/// Note: some functions that are marked as inline in DSNodeHandle are actually
+/// defined in DSNode.h because they need knowledge of DSNode operation. Putting
+/// them in a CPP file wouldn't help making them inlined and keeping DSNode and
+/// DSNodeHandle (and friends) in one file complicates things.
 class DSNodeHandle {
   DSNode *N;
   unsigned Offset;
index 74fd5afe532c3fa15eec50764c9e7ee8b7f2a0e7..12d2cbc2bd41025f83a6fbef2c1b12a05b4a7c26 100644 (file)
@@ -1,6 +1,6 @@
-//===- DSSupport.h - Support for datastructure graphs -----------*- C++ -*-===//
+//===- DSNode.h - Node definition for datastructure graphs ------*- C++ -*-===//
 //
-// Support for graph nodes, call sites, and types.
+// Data structure graph nodes and some implementation of DSNodeHandle.
 //
 //===----------------------------------------------------------------------===//
 
index b3c3ed02965c52cb2f161a9ef48351a99c6af499..ae1e815ba792072844fc6f7450ecba8731f34b12 100644 (file)
@@ -28,6 +28,10 @@ class DSNodeIterator;          // Data structure graph traversal iterator
 /// graph from getting out of date.  This class represents a "pointer" in the
 /// graph, whose destination is an indexed offset into a node.
 ///
+/// Note: some functions that are marked as inline in DSNodeHandle are actually
+/// defined in DSNode.h because they need knowledge of DSNode operation. Putting
+/// them in a CPP file wouldn't help making them inlined and keeping DSNode and
+/// DSNodeHandle (and friends) in one file complicates things.
 class DSNodeHandle {
   DSNode *N;
   unsigned Offset;