aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineLoopRanges.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen/MachineLoopRanges.h')
-rw-r--r--include/llvm/CodeGen/MachineLoopRanges.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineLoopRanges.h b/include/llvm/CodeGen/MachineLoopRanges.h
index 3f2f241..6a30e8b 100644
--- a/include/llvm/CodeGen/MachineLoopRanges.h
+++ b/include/llvm/CodeGen/MachineLoopRanges.h
@@ -49,6 +49,9 @@ private:
MachineLoopRange(const MachineLoop*, Allocator&, SlotIndexes&);
public:
+ /// getLoop - Return the mapped machine loop.
+ const MachineLoop *getLoop() const { return Loop; }
+
/// overlaps - Return true if this loop overlaps the given range of machine
/// inteructions.
bool overlaps(SlotIndex Start, SlotIndex Stop);