summaryrefslogtreecommitdiff
path: root/src/preprocessing/preprocessing_pass.cpp
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-10-01 11:07:13 -0700
committerGitHub <noreply@github.com>2018-10-01 11:07:13 -0700
commitda3b2212ed6befc0d29646ef65570919377913fe (patch)
treeade1547a960df8e38cedbd54d942e038580f71c4 /src/preprocessing/preprocessing_pass.cpp
parent48ea68aa581d492c48fe9e08b54e9ce26f3508b9 (diff)
Fix dumping pre/post preprocessing passes (#2469)
This commit changes the hard-coded list of checks for preprocessing-related dump tags to take advantage of the new preprocessing pass registration mechanism from PR #2468. It also fixes a typo in the `Dump.isOn()` check in `PreprocessingPass::dumpAssertions()` and adds a list of available passes to the `--dump help` output.
Diffstat (limited to 'src/preprocessing/preprocessing_pass.cpp')
-rw-r--r--src/preprocessing/preprocessing_pass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/preprocessing/preprocessing_pass.cpp b/src/preprocessing/preprocessing_pass.cpp
index 6a1d89d33..120c68a91 100644
--- a/src/preprocessing/preprocessing_pass.cpp
+++ b/src/preprocessing/preprocessing_pass.cpp
@@ -36,7 +36,8 @@ PreprocessingPassResult PreprocessingPass::apply(
void PreprocessingPass::dumpAssertions(const char* key,
const AssertionPipeline& assertionList) {
- if (Dump.isOn("assertions") && Dump.isOn(std::string("assertions::") + key)) {
+ if (Dump.isOn("assertions") && Dump.isOn(std::string("assertions:") + key))
+ {
// Push the simplified assertions to the dump output stream
for (const auto& n : assertionList) {
Dump("assertions") << AssertCommand(Expr(n.toExpr()));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback