[PATCH] D26994: [StructurizeCFG] Use an inheriting constructor.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 22 13:57:09 PST 2016
jlebar updated this revision to Diff 78946.
jlebar added a comment.
Merge the two constructors into one.
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,13 +238,8 @@
public:
static char ID;
- StructurizeCFG() :
- RegionPass(ID), SkipUniformRegions(false) {
- initializeStructurizeCFGPass(*PassRegistry::getPassRegistry());
- }
-
- StructurizeCFG(bool SkipUniformRegions) :
- RegionPass(ID), SkipUniformRegions(SkipUniformRegions) {
+ explicit StructurizeCFG(bool SkipUniformRegions = false)
+ : RegionPass(ID), SkipUniformRegions(SkipUniformRegions) {
initializeStructurizeCFGPass(*PassRegistry::getPassRegistry());
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26994.78946.patch
Type: text/x-patch
Size: 728 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161122/d4041f09/attachment.bin>
More information about the llvm-commits
mailing list