[PATCH] D26994: [StructurizeCFG] Use an inheriting constructor.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 22 15:23:50 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL287718: [StructurizeCFG] Merge the two constructors into one. (authored by jlebar).
Changed prior to commit:
https://reviews.llvm.org/D26994?vs=78946&id=78960#toc
Repository:
rL LLVM
https://reviews.llvm.org/D26994
Files:
llvm/trunk/lib/Transforms/Scalar/StructurizeCFG.cpp
Index: llvm/trunk/lib/Transforms/Scalar/StructurizeCFG.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/StructurizeCFG.cpp
+++ llvm/trunk/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.78960.patch
Type: text/x-patch
Size: 746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161122/30827f9e/attachment.bin>
More information about the llvm-commits
mailing list