Deleted Added
full compact
IntervalIterator.h (210299) IntervalIterator.h (234353)
1//===- IntervalIterator.h - Interval Iterator Declaration -------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 87 unchanged lines hidden (view full) ---

96public:
97 typedef IntervalIterator<NodeTy, OrigContainer_t> _Self;
98 typedef std::forward_iterator_tag iterator_category;
99
100 IntervalIterator() {} // End iterator, empty stack
101 IntervalIterator(Function *M, bool OwnMemory) : IOwnMem(OwnMemory) {
102 OrigContainer = M;
103 if (!ProcessInterval(&M->front())) {
1//===- IntervalIterator.h - Interval Iterator Declaration -------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 87 unchanged lines hidden (view full) ---

96public:
97 typedef IntervalIterator<NodeTy, OrigContainer_t> _Self;
98 typedef std::forward_iterator_tag iterator_category;
99
100 IntervalIterator() {} // End iterator, empty stack
101 IntervalIterator(Function *M, bool OwnMemory) : IOwnMem(OwnMemory) {
102 OrigContainer = M;
103 if (!ProcessInterval(&M->front())) {
104 assert(0 && "ProcessInterval should never fail for first interval!");
104 llvm_unreachable("ProcessInterval should never fail for first interval!");
105 }
106 }
107
108 IntervalIterator(IntervalPartition &IP, bool OwnMemory) : IOwnMem(OwnMemory) {
109 OrigContainer = &IP;
110 if (!ProcessInterval(IP.getRootInterval())) {
105 }
106 }
107
108 IntervalIterator(IntervalPartition &IP, bool OwnMemory) : IOwnMem(OwnMemory) {
109 OrigContainer = &IP;
110 if (!ProcessInterval(IP.getRootInterval())) {
111 assert(0 && "ProcessInterval should never fail for first interval!");
111 llvm_unreachable("ProcessInterval should never fail for first interval!");
112 }
113 }
114
115 inline ~IntervalIterator() {
116 if (IOwnMem)
117 while (!IntStack.empty()) {
118 delete operator*();
119 IntStack.pop_back();

--- 140 unchanged lines hidden ---
112 }
113 }
114
115 inline ~IntervalIterator() {
116 if (IOwnMem)
117 while (!IntStack.empty()) {
118 delete operator*();
119 IntStack.pop_back();

--- 140 unchanged lines hidden ---