From d6d8f41699156686869ee3a0c04b4ba4c3081072 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 16 Oct 2002 01:17:16 +0000 Subject: [PATCH] Allow direct access to mergemap for printing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4191 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DSGraph.h | 5 +++++ include/llvm/Analysis/DataStructure/DSGraph.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/include/llvm/Analysis/DSGraph.h b/include/llvm/Analysis/DSGraph.h index 285724a5769..121cce6fdbd 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 285724a5769..121cce6fdbd 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. -- 2.34.1