Allow direct access to mergemap for printing
authorChris Lattner <sabre@nondot.org>
Wed, 16 Oct 2002 01:17:16 +0000 (01:17 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 16 Oct 2002 01:17:16 +0000 (01:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4191 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DSGraph.h
include/llvm/Analysis/DataStructure/DSGraph.h

index 285724a5769899c88b4cc58f2a8fe0788fe7fa57..121cce6fdbd50f0c3331c8a1475cd889cd2f148b 100644 (file)
@@ -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.
index 285724a5769899c88b4cc58f2a8fe0788fe7fa57..121cce6fdbd50f0c3331c8a1475cd889cd2f148b 100644 (file)
@@ -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.