I am attempting to follow the https://github.com/lsegal/my_toy_compiler, but even though it has been updated for LLVM 3.8.0, I am unable to get it to compile using LLVM 3.8.4 from brew with --with-clang --with-lld --with-jit --with-python
. Specifically I get the following error, use of undeclared identifier 'getGlobalContext'
.
Additionally the symbol getGlobalContext
does not appear in the /usr/local/opt/llvm/include/llvm/IR/LLVMContext.h
or indeed anywhere in the /usr/local/opt/llvm/include
directory.
I expect that either this function has been deprecated recently, (for which I have not been able to find any evidence), or that I am not building it correctly.
Any tips would be appreciated.
NOTE I have seen Trouble linking against LLVM with project including Flex and Bison and it did not resolve my particular problem