summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcello Maggioni <mmaggioni@apple.com>2019-10-28 09:15:52 -0700
committerMarcello Maggioni <mmaggioni@apple.com>2019-10-28 09:15:52 -0700
commite4d6f1300fa2dd12d9d68fab2ded72c0e69b19ee (patch)
tree36c4edcef8832a6c37a90c84c4e8d256cdec3d42
parentbf21f0d489fb461a8eeb4d6342d28ed2c6e4048d (diff)
downloadbcm5719-llvm-e4d6f1300fa2dd12d9d68fab2ded72c0e69b19ee.tar.gz
bcm5719-llvm-e4d6f1300fa2dd12d9d68fab2ded72c0e69b19ee.zip
[LiveIntervalUnion] Expose extraction of last index in map for external users
Differential Revision: https://reviews.llvm.org/D69515
-rw-r--r--llvm/include/llvm/CodeGen/LiveIntervalUnion.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/LiveIntervalUnion.h b/llvm/include/llvm/CodeGen/LiveIntervalUnion.h
index 05506d2c3bc..c555763a4ec 100644
--- a/llvm/include/llvm/CodeGen/LiveIntervalUnion.h
+++ b/llvm/include/llvm/CodeGen/LiveIntervalUnion.h
@@ -75,6 +75,7 @@ public:
bool empty() const { return Segments.empty(); }
SlotIndex startIndex() const { return Segments.start(); }
+ SlotIndex endIndex() const { return Segments.stop(); }
// Provide public access to the underlying map to allow overlap iteration.
using Map = LiveSegments;
OpenPOWER on IntegriCloud