summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-22 03:03:24 +0000
committerChris Lattner <sabre@nondot.org>2003-06-22 03:03:24 +0000
commit5bb8776eced883293b3d2e11e52ad250a3a91015 (patch)
tree51915e9ee73fae8010c0e34e7cfa04eb0f5128d1 /include
parent797249bc136378d8af429b136a6c35242bd71623 (diff)
downloadllvm-5bb8776eced883293b3d2e11e52ad250a3a91015.tar.gz
llvm-5bb8776eced883293b3d2e11e52ad250a3a91015.tar.bz2
llvm-5bb8776eced883293b3d2e11e52ad250a3a91015.tar.xz
Remove support for the MultiObject flag, which was just fundamentally broken
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/DSNode.h21
-rw-r--r--include/llvm/Analysis/DataStructure/DSNode.h21
2 files changed, 10 insertions, 32 deletions
diff --git a/include/llvm/Analysis/DSNode.h b/include/llvm/Analysis/DSNode.h
index c411824454..956bcbdab9 100644
--- a/include/llvm/Analysis/DSNode.h
+++ b/include/llvm/Analysis/DSNode.h
@@ -7,9 +7,6 @@
#ifndef LLVM_ANALYSIS_DSNODE_H
#define LLVM_ANALYSIS_DSNODE_H
-#include <assert.h>
-
-#include "llvm/Analysis/DSSupport.h"
template<typename BaseType>
class DSNodeIterator; // Data structure graph traversal iterator
@@ -74,9 +71,8 @@ public:
Read = 1 << 6, // This node is read in this context
Array = 1 << 7, // This node is treated like an array
- MultiObject = 1 << 8, // This node represents > 1 object (may alias)
//#ifndef NDEBUG
- DEAD = 1 << 9, // This node is dead and should not be pointed to
+ DEAD = 1 << 8, // This node is dead and should not be pointed to
//#endif
Composition = AllocaNode | HeapNode | GlobalNode | UnknownNode,
@@ -250,13 +246,12 @@ public:
bool isRead() const { return NodeType & Read; }
bool isIncomplete() const { return NodeType & Incomplete; }
- bool isMultiObject() const { return NodeType & MultiObject; }
bool isDeadNode() const { return NodeType & DEAD; }
- DSNode *setAllocaNodeMarker() { return setCompositionMarker(AllocaNode); }
- DSNode *setHeapNodeMarker() { return setCompositionMarker(HeapNode); }
- DSNode *setGlobalNodeMarker() { return setCompositionMarker(GlobalNode); }
- DSNode *setUnknownNodeMarker() { return setCompositionMarker(UnknownNode); }
+ DSNode *setAllocaNodeMarker() { NodeType |= AllocaNode; return this; }
+ DSNode *setHeapNodeMarker() { NodeType |= HeapNode; return this; }
+ DSNode *setGlobalNodeMarker() { NodeType |= GlobalNode; return this; }
+ DSNode *setUnknownNodeMarker() { NodeType |= UnknownNode; return this; }
DSNode *setIncompleteMarker() { NodeType |= Incomplete; return this; }
DSNode *setModifiedMarker() { NodeType |= Modified; return this; }
@@ -297,12 +292,6 @@ public:
private:
friend class DSNodeHandle;
- DSNode *setCompositionMarker(unsigned Marker) {
- if (NodeType & Composition) Marker |= MultiObject;
- NodeType |= Marker;
- return this;
- }
-
// static mergeNodes - Helper for mergeWith()
static void MergeNodes(DSNodeHandle& CurNodeH, DSNodeHandle& NH);
};
diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h
index c411824454..956bcbdab9 100644
--- a/include/llvm/Analysis/DataStructure/DSNode.h
+++ b/include/llvm/Analysis/DataStructure/DSNode.h
@@ -7,9 +7,6 @@
#ifndef LLVM_ANALYSIS_DSNODE_H
#define LLVM_ANALYSIS_DSNODE_H
-#include <assert.h>
-
-#include "llvm/Analysis/DSSupport.h"
template<typename BaseType>
class DSNodeIterator; // Data structure graph traversal iterator
@@ -74,9 +71,8 @@ public:
Read = 1 << 6, // This node is read in this context
Array = 1 << 7, // This node is treated like an array
- MultiObject = 1 << 8, // This node represents > 1 object (may alias)
//#ifndef NDEBUG
- DEAD = 1 << 9, // This node is dead and should not be pointed to
+ DEAD = 1 << 8, // This node is dead and should not be pointed to
//#endif
Composition = AllocaNode | HeapNode | GlobalNode | UnknownNode,
@@ -250,13 +246,12 @@ public:
bool isRead() const { return NodeType & Read; }
bool isIncomplete() const { return NodeType & Incomplete; }
- bool isMultiObject() const { return NodeType & MultiObject; }
bool isDeadNode() const { return NodeType & DEAD; }
- DSNode *setAllocaNodeMarker() { return setCompositionMarker(AllocaNode); }
- DSNode *setHeapNodeMarker() { return setCompositionMarker(HeapNode); }
- DSNode *setGlobalNodeMarker() { return setCompositionMarker(GlobalNode); }
- DSNode *setUnknownNodeMarker() { return setCompositionMarker(UnknownNode); }
+ DSNode *setAllocaNodeMarker() { NodeType |= AllocaNode; return this; }
+ DSNode *setHeapNodeMarker() { NodeType |= HeapNode; return this; }
+ DSNode *setGlobalNodeMarker() { NodeType |= GlobalNode; return this; }
+ DSNode *setUnknownNodeMarker() { NodeType |= UnknownNode; return this; }
DSNode *setIncompleteMarker() { NodeType |= Incomplete; return this; }
DSNode *setModifiedMarker() { NodeType |= Modified; return this; }
@@ -297,12 +292,6 @@ public:
private:
friend class DSNodeHandle;
- DSNode *setCompositionMarker(unsigned Marker) {
- if (NodeType & Composition) Marker |= MultiObject;
- NodeType |= Marker;
- return this;
- }
-
// static mergeNodes - Helper for mergeWith()
static void MergeNodes(DSNodeHandle& CurNodeH, DSNodeHandle& NH);
};