utils: Adapt to llvm r325155

r325155 ("Pass a reference to a module to the bitcode writer.")
changed bit writer interface from pointer to reference

Reviewer: Aaron Watry <awatry@gmail.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 325867
This commit is contained in:
Jan Vesely 2018-02-23 07:37:03 +00:00
parent 1ad6a94676
commit 86db4302e0
1 changed files with 4 additions and 0 deletions

View File

@ -105,7 +105,11 @@ int main(int argc, char **argv) {
exit(1);
}
#if HAVE_LLVM >= 0x0700
WriteBitcodeToFile(*M, Out->os());
#else
WriteBitcodeToFile(M, Out->os());
#endif
// Declare success.
Out->keep();