From edd30e5bfaa74e14fa91de189f78a7349c382ede 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 llvm-svn: 4191 --- llvm/include/llvm/Analysis/DSGraph.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/include/llvm/Analysis/DSGraph.h b/llvm/include/llvm/Analysis/DSGraph.h index 285724a57698..121cce6fdbd5 100644 --- a/llvm/include/llvm/Analysis/DSGraph.h +++ b/llvm/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.