BrainF is a cool example demonstrating LLVM capabilities.
I fixed Segmentation fault issue reproduced with -jit option:
- MCJIT dependency added
- AsmPrinter initialiser added
- fflush call added to let symbols appear on console
There were a couple of minor changes in the example code for last years, but there is no person responsible for the example. Can somebody have a look to this review please. Thanks!
NULL is obsoleted in C++11 in favour of nullptr. Moreover typical LLVM code style will be just: