diff options
| author | 2017-01-14 19:55:43 +0000 | |
|---|---|---|
| committer | 2017-01-14 19:55:43 +0000 | |
| commit | bd3306aecb3a15e8967143b8cdbbccf2b1b19b74 (patch) | |
| tree | 309a8132b44564b9e634c0da6815187ce8eab27c /gnu/llvm/lib/Analysis/Interval.cpp | |
| parent | killp -a should not kill the window if only one pane. (diff) | |
| download | wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.tar.xz wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.zip | |
Import LLVM 3.9.1 including clang and lld.
Diffstat (limited to 'gnu/llvm/lib/Analysis/Interval.cpp')
| -rw-r--r-- | gnu/llvm/lib/Analysis/Interval.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gnu/llvm/lib/Analysis/Interval.cpp b/gnu/llvm/lib/Analysis/Interval.cpp index e3e785ffc45..6c10d73bcb4 100644 --- a/gnu/llvm/lib/Analysis/Interval.cpp +++ b/gnu/llvm/lib/Analysis/Interval.cpp @@ -42,17 +42,14 @@ void Interval::print(raw_ostream &OS) const { << "Interval Contents:\n"; // Print out all of the basic blocks in the interval... - for (std::vector<BasicBlock*>::const_iterator I = Nodes.begin(), - E = Nodes.end(); I != E; ++I) - OS << **I << "\n"; + for (const BasicBlock *Node : Nodes) + OS << *Node << "\n"; OS << "Interval Predecessors:\n"; - for (std::vector<BasicBlock*>::const_iterator I = Predecessors.begin(), - E = Predecessors.end(); I != E; ++I) - OS << **I << "\n"; + for (const BasicBlock *Predecessor : Predecessors) + OS << *Predecessor << "\n"; OS << "Interval Successors:\n"; - for (std::vector<BasicBlock*>::const_iterator I = Successors.begin(), - E = Successors.end(); I != E; ++I) - OS << **I << "\n"; + for (const BasicBlock *Successor : Successors) + OS << *Successor << "\n"; } |
