aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/Local.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-08 20:18:39 +0000
committerChris Lattner <sabre@nondot.org>2003-02-08 20:18:39 +0000
commitca3f790f71345ca53f1cdc9a986eeb40140a035b (patch)
treef590ed9c28e87425dacf4e014e67eaca181298ee /lib/Analysis/DataStructure/Local.cpp
parent1dbd1b820f984a30e82ddbed70de45394bc6df3c (diff)
Add a flag which effectively disables field sensitivity
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/Local.cpp')
-rw-r--r--lib/Analysis/DataStructure/Local.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp
index d56ad01f0a..559d79aa8f 100644
--- a/lib/Analysis/DataStructure/Local.cpp
+++ b/lib/Analysis/DataStructure/Local.cpp
@@ -50,6 +50,9 @@ namespace {
DisableDirectCallOpt("disable-direct-call-dsopt", cl::Hidden,
cl::desc("Disable direct call optimization in "
"DSGraph construction"));
+ cl::opt<bool>
+ DisableFieldSensitivity("disable-ds-field-sensitivity", cl::Hidden,
+ cl::desc("Disable field sensitivity in DSGraphs"));
//===--------------------------------------------------------------------===//
// GraphBuilder Class
@@ -108,6 +111,8 @@ namespace {
DSNode *createNode(DSNode::NodeTy NodeType, const Type *Ty = 0) {
DSNode *N = new DSNode(NodeType, Ty); // Create the node
Nodes.push_back(N); // Add node to nodes list
+ if (DisableFieldSensitivity)
+ N->foldNodeCompletely();
return N;
}