i\'ve assumed that dumping a .bc file from a module was a trivial operation, but now, first time i have to actually do it from code, for the life of me i can\'t find one mis
I use following code :
std::error_code EC; llvm::raw_fd_ostream OS("module", EC, llvm::sys::fs::F_None); WriteBitcodeToFile(pBiFModule, OS); OS.flush();
and then disassemble using llvm-dis.