diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2018-10-02 14:55:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 14:55:21 -0700 |
commit | 937d37ef78d3ef445335928d498422083df74d77 (patch) | |
tree | 0e686ba7f9a7d745bc86c71c8629ee21510bb728 /src/preprocessing/passes/bv_intro_pow2.cpp | |
parent | a580349bbb39fa9681ab2e2d05dd448f8b082399 (diff) |
Make registration of preprocessing passes explicit (#2564)
As it turns out, self-registering types are problematic with static
linkage [0]. Instead of fixing the issue with linker flags, which seems
possible but also brittle (e.g. the flags may be different for different
linkers), this commit adds an explicit registration of each
preprocessing pass.
[0] https://www.bfilipek.com/2018/02/static-vars-static-lib.html
Diffstat (limited to 'src/preprocessing/passes/bv_intro_pow2.cpp')
-rw-r--r-- | src/preprocessing/passes/bv_intro_pow2.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/preprocessing/passes/bv_intro_pow2.cpp b/src/preprocessing/passes/bv_intro_pow2.cpp index 82781b848..fb9ceac71 100644 --- a/src/preprocessing/passes/bv_intro_pow2.cpp +++ b/src/preprocessing/passes/bv_intro_pow2.cpp @@ -20,7 +20,6 @@ #include <unordered_map> -#include "preprocessing/preprocessing_pass_registry.h" #include "theory/bv/theory_bv_rewrite_rules_simplification.h" #include "theory/rewriter.h" @@ -99,7 +98,6 @@ PreprocessingPassResult BvIntroPow2::applyInternal( return PreprocessingPassResult::NO_CONFLICT; } -static RegisterPass<BvIntroPow2> X("bv-intro-pow2"); }/* CVC4::theory::bv namespace */ }/* CVC4::theory namespace */ |