[LLVMdev] write module to .bc file
David Nadlinger
code at klickverbot.at
Sun Dec 16 09:46:59 PST 2012
On Sun, Dec 16, 2012 at 6:18 PM, charles quarra
<charllsnotieneningunputocorreo at gmail.com> wrote:
> i'm afraid this question is extremely basic, but i've assumed that
> dumping a .bc file from a module was a trivial operation,
> […] is there a llvm api for this? do i need something
> else?
You could just set up a llvm::raw_fd_ostream for the output file and
then pass it to llvm::WriteBitcodeToFile [1].
David
[1] http://llvm.org/docs/doxygen/html/namespacellvm.html#a979cf64d92322765aef149bc5b002cbb
More information about the llvm-dev
mailing list