diff options
| author | 2017-01-24 08:32:59 +0000 | |
|---|---|---|
| committer | 2017-01-24 08:32:59 +0000 | |
| commit | 53d771aafdbe5b919f264f53cba3788e2c4cffd2 (patch) | |
| tree | 7eca39498be0ff1e3a6daf583cd9ca5886bb2636 /gnu/llvm/lib/Analysis/RegionPass.cpp | |
| parent | In preparation of compiling our kernels with -ffreestanding, explicitly map (diff) | |
| download | wireguard-openbsd-53d771aafdbe5b919f264f53cba3788e2c4cffd2.tar.xz wireguard-openbsd-53d771aafdbe5b919f264f53cba3788e2c4cffd2.zip | |
Import LLVM 4.0.0 rc1 including clang and lld to help the current
development effort on OpenBSD/arm64.
Diffstat (limited to 'gnu/llvm/lib/Analysis/RegionPass.cpp')
| -rw-r--r-- | gnu/llvm/lib/Analysis/RegionPass.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gnu/llvm/lib/Analysis/RegionPass.cpp b/gnu/llvm/lib/Analysis/RegionPass.cpp index 5e1cdd48a78..7358aa6810a 100644 --- a/gnu/llvm/lib/Analysis/RegionPass.cpp +++ b/gnu/llvm/lib/Analysis/RegionPass.cpp @@ -10,7 +10,7 @@ // This file implements RegionPass and RGPassManager. All region optimization // and transformation passes are derived from RegionPass. RGPassManager is // responsible for managing RegionPasses. -// most of these codes are COPY from LoopPass.cpp +// Most of this code has been COPIED from LoopPass.cpp // //===----------------------------------------------------------------------===// #include "llvm/Analysis/RegionPass.h" @@ -64,9 +64,7 @@ bool RGPassManager::runOnFunction(Function &F) { return false; // Initialization - for (std::deque<Region *>::const_iterator I = RQ.begin(), E = RQ.end(); - I != E; ++I) { - Region *R = *I; + for (Region *R : RQ) { for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) { RegionPass *RP = (RegionPass *)getContainedPass(Index); Changed |= RP->doInitialization(R, *this); |
