diff options
Diffstat (limited to 'lib/Transforms/Scalar/LoopUnswitch.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopUnswitch.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp index 77dfb908fa..ce459e708a 100644 --- a/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -69,6 +69,9 @@ namespace { SmallPtrSet<Value *,8> UnswitchedVals; public: + static const int ID; // Pass ID, replacement for typeid + LoopUnswitch() : LoopPass((intptr_t)&ID) {} + bool runOnLoop(Loop *L, LPPassManager &LPM); /// This transformation requires natural loop information & requires that @@ -109,6 +112,7 @@ namespace { std::vector<Instruction*> &Worklist); void RemoveLoopFromHierarchy(Loop *L); }; + const int LoopUnswitch::ID = 0; RegisterPass<LoopUnswitch> X("loop-unswitch", "Unswitch loops"); } |