diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-16 01:17:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-16 01:17:16 +0000 |
commit | d6d8f41699156686869ee3a0c04b4ba4c3081072 (patch) | |
tree | 1e4728b28fdc65c3d386c4911f52ba8cabda599e /include/llvm | |
parent | 04b72c821e616c017d5c198487621d8be281f2d4 (diff) | |
download | external_llvm-d6d8f41699156686869ee3a0c04b4ba4c3081072.zip external_llvm-d6d8f41699156686869ee3a0c04b4ba4c3081072.tar.gz external_llvm-d6d8f41699156686869ee3a0c04b4ba4c3081072.tar.bz2 |
Allow direct access to mergemap for printing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/DSGraph.h | 5 | ||||
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSGraph.h | 5 |
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. |