summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2002-11-02 21:18:53 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2002-11-02 21:18:53 +0000
commit5ab3a23f2eb809c54022f487fe29b88d235be211 (patch)
tree805caf2f79e3c7f6dbbd1d61c9cf0e6d15b984ca
parent781986c43651c4558d5f5dd5b8c4174b7712b3f9 (diff)
downloadbcm5719-llvm-5ab3a23f2eb809c54022f487fe29b88d235be211.tar.gz
bcm5719-llvm-5ab3a23f2eb809c54022f487fe29b88d235be211.zip
Fixed comment on top of DSNode.h, added note to DSSupport.h as to why
functions were split out from DSNode class. llvm-svn: 4509
-rw-r--r--llvm/include/llvm/Analysis/DSNode.h4
-rw-r--r--llvm/include/llvm/Analysis/DSSupport.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/llvm/include/llvm/Analysis/DSNode.h b/llvm/include/llvm/Analysis/DSNode.h
index 74fd5afe532..12d2cbc2bd4 100644
--- a/llvm/include/llvm/Analysis/DSNode.h
+++ b/llvm/include/llvm/Analysis/DSNode.h
@@ -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.
//
//===----------------------------------------------------------------------===//
diff --git a/llvm/include/llvm/Analysis/DSSupport.h b/llvm/include/llvm/Analysis/DSSupport.h
index b3c3ed02965..ae1e815ba79 100644
--- a/llvm/include/llvm/Analysis/DSSupport.h
+++ b/llvm/include/llvm/Analysis/DSSupport.h
@@ -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;
OpenPOWER on IntegriCloud