From 2ff405c7e1c70332224d912ae3fbb6fa1de7b9d1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 20 Oct 2002 20:28:35 +0000 Subject: [PATCH] Add isArray flag llvm-svn: 4230 --- llvm/include/llvm/Analysis/DSGraph.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/llvm/include/llvm/Analysis/DSGraph.h b/llvm/include/llvm/Analysis/DSGraph.h index 1148dd65a1eb..dc8f1adcf54c 100644 --- a/llvm/include/llvm/Analysis/DSGraph.h +++ b/llvm/include/llvm/Analysis/DSGraph.h @@ -119,13 +119,12 @@ class DSNode { /// std::vector Referrers; - /// TypeEntries - As part of the merging process of this algorithm, nodes of - /// different types can be represented by this single DSNode. This vector is - /// kept sorted. - /// + /// TypeRec - This structure is used to represent a single type that is held + /// in a DSNode. struct TypeRec { - const Type *Ty; - unsigned Offset; + const Type *Ty; // The type itself... + unsigned Offset; // The offset in the node + bool isArray; // Have we accessed an array of elements? TypeRec() : Ty(0), Offset(0) {} TypeRec(const Type *T, unsigned O) : Ty(T), Offset(O) {} @@ -140,6 +139,10 @@ class DSNode { bool operator!=(const TypeRec &TR) const { return !operator==(TR); } }; + /// TypeEntries - As part of the merging process of this algorithm, nodes of + /// different types can be represented by this single DSNode. This vector is + /// kept sorted. + /// std::vector TypeEntries; /// Globals - The list of global values that are merged into this node.