rose: only dump small-block table in block mode

This commit is contained in:
Justin Viiret 2016-07-08 11:36:10 +10:00 committed by Matthew Barr
parent 39c6a0c7bf
commit 6ec93a54c4

View File

@ -469,11 +469,14 @@ void dumpRoseTestLiterals(const RoseBuildImpl &build, const string &base) {
lits = fillHamsterLiteralList(build, ROSE_EOD_ANCHORED); lits = fillHamsterLiteralList(build, ROSE_EOD_ANCHORED);
dumpTestLiterals(base + "rose_eod_test_literals.txt", lits); dumpTestLiterals(base + "rose_eod_test_literals.txt", lits);
lits = fillHamsterLiteralList(build, ROSE_FLOATING, ROSE_SMALL_BLOCK_LEN); if (!build.cc.streaming) {
auto lits2 = fillHamsterLiteralList(build, ROSE_ANCHORED_SMALL_BLOCK, lits = fillHamsterLiteralList(build, ROSE_FLOATING,
ROSE_SMALL_BLOCK_LEN); ROSE_SMALL_BLOCK_LEN);
lits.insert(end(lits), begin(lits2), end(lits2)); auto lits2 = fillHamsterLiteralList(build, ROSE_ANCHORED_SMALL_BLOCK,
dumpTestLiterals(base + "rose_smallblock_test_literals.txt", lits); ROSE_SMALL_BLOCK_LEN);
lits.insert(end(lits), begin(lits2), end(lits2));
dumpTestLiterals(base + "rose_smallblock_test_literals.txt", lits);
}
} }
void dumpRose(const RoseBuild &build_base, const RoseEngine *t, void dumpRose(const RoseBuild &build_base, const RoseEngine *t,