summaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Analysis/DSGraph.h5
-rw-r--r--include/llvm/Analysis/DataStructure/DSGraph.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DSGraph.h b/include/llvm/Analysis/DSGraph.h
index 285724a..121cce6 100644
--- a/include/llvm/Analysis/DSGraph.h
+++ b/include/llvm/Analysis/DSGraph.h
@@ -192,6 +192,11 @@ public:
return 0;
}
+ int getMergeMapLabel(unsigned i) {
+ assert(i < MergeMap.size() && "MergeMap index out of range!");
+ return MergeMap[i];
+ }
+
/// setLink - Set the link at the specified offset to the specified
/// NodeHandle, replacing what was there. It is uncommon to use this method,
/// instead one of the higher level methods should be used, below.
diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h
index 285724a..121cce6 100644
--- a/include/llvm/Analysis/DataStructure/DSGraph.h
+++ b/include/llvm/Analysis/DataStructure/DSGraph.h
@@ -192,6 +192,11 @@ public:
return 0;
}
+ int getMergeMapLabel(unsigned i) {
+ assert(i < MergeMap.size() && "MergeMap index out of range!");
+ return MergeMap[i];
+ }
+
/// setLink - Set the link at the specified offset to the specified
/// NodeHandle, replacing what was there. It is uncommon to use this method,
/// instead one of the higher level methods should be used, below.