mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Add a flag which effectively disables field sensitivity
llvm-svn: 5506
This commit is contained in:
parent
b056679b1e
commit
2c7c54ce9d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user