summaryrefslogtreecommitdiff
path: root/decoder/cfg_options.h
diff options
context:
space:
mode:
authorgraehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-17 06:08:26 +0000
committergraehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-17 06:08:26 +0000
commita875f81960b3eab2d7c33c2f82703ccab28f7dbd (patch)
tree08d12b37d11927ab2e9d4ca00c019ddee0be4877 /decoder/cfg_options.h
parentfe3af2962d91ac2dbe8947bf5675e6c9c31cd5d4 (diff)
kthx
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@566 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/cfg_options.h')
-rwxr-xr-xdecoder/cfg_options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/cfg_options.h b/decoder/cfg_options.h
index 331363d2..db89e8c3 100755
--- a/decoder/cfg_options.h
+++ b/decoder/cfg_options.h
@@ -56,6 +56,7 @@ struct CFGOptions {
return "CFG output options";
}
void maybe_print(CFG &cfg,std::string cfg_output,char const* desc=" unbinarized") {
+ if (cfg_output.empty() return;
WriteFile o(cfg_output);
std::cerr<<"Printing target"<<desc<<" CFG to "<<cfg_output<<": "<<format<<'\n';
cfg.Print(o.get(),format);