summaryrefslogtreecommitdiff
path: root/src/preprocessing/passes/bv_eager_atoms.cpp
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-10-02 14:55:21 -0700
committerGitHub <noreply@github.com>2018-10-02 14:55:21 -0700
commit937d37ef78d3ef445335928d498422083df74d77 (patch)
tree0e686ba7f9a7d745bc86c71c8629ee21510bb728 /src/preprocessing/passes/bv_eager_atoms.cpp
parenta580349bbb39fa9681ab2e2d05dd448f8b082399 (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_eager_atoms.cpp')
-rw-r--r--src/preprocessing/passes/bv_eager_atoms.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/preprocessing/passes/bv_eager_atoms.cpp b/src/preprocessing/passes/bv_eager_atoms.cpp
index 6b80a4e65..8ee46829a 100644
--- a/src/preprocessing/passes/bv_eager_atoms.cpp
+++ b/src/preprocessing/passes/bv_eager_atoms.cpp
@@ -18,7 +18,6 @@
#include "preprocessing/passes/bv_eager_atoms.h"
-#include "preprocessing/preprocessing_pass_registry.h"
#include "theory/theory_model.h"
namespace CVC4 {
@@ -43,7 +42,6 @@ PreprocessingPassResult BvEagerAtoms::applyInternal(
return PreprocessingPassResult::NO_CONFLICT;
}
-static RegisterPass<BvEagerAtoms> X("bv-eager-atoms");
} // namespace passes
} // namespace preprocessing
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback