[PATCH] D26994: [StructurizeCFG] Use an inheriting constructor.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 22 13:45:28 PST 2016
jlebar created this revision.
jlebar added a reviewer: arsenm.
jlebar added a subscriber: llvm-commits.
Herald added a subscriber: wdng.
https://reviews.llvm.org/D26994
Files:
llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
Index: llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
+++ llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
@@ -238,10 +238,7 @@
public:
static char ID;
- StructurizeCFG() :
- RegionPass(ID), SkipUniformRegions(false) {
- initializeStructurizeCFGPass(*PassRegistry::getPassRegistry());
- }
+ StructurizeCFG() : StructurizeCFG(/* SkipUniformRegions = */ false) {}
StructurizeCFG(bool SkipUniformRegions) :
RegionPass(ID), SkipUniformRegions(SkipUniformRegions) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26994.78938.patch
Type: text/x-patch
Size: 600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161122/3eaa9fd8/attachment.bin>
More information about the llvm-commits
mailing list