Skip to content

Commit

Permalink
flush to json file
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahanxie353 committed Nov 17, 2024
1 parent 3e2d218 commit 3e5e79f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Conversion/SCFToCalyx/SCFToCalyx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,9 @@ class BuildOpGroups : public calyx::FuncOpPartialLoweringPattern {

if (outFile.is_open()) {
llvm::raw_os_ostream llvmOut(outFile);
llvm::json::OStream JOS(llvmOut, 2);
JOS.value(getState<ComponentLoweringState>().getExtMemData());
llvm::json::OStream jsonOS(llvmOut, 2);
jsonOS.value(getState<ComponentLoweringState>().getExtMemData());
jsonOS.flush();
outFile.close();
} else
llvm::errs() << "Unable to open file for writing\n";
Expand Down

0 comments on commit 3e5e79f

Please sign in to comment.