LLVM toys
Some of the programs in directory LLVM/cplusplus
cannot be built with LLVM 11.1.
Specifically, toy4, toy5, toy6, toy7
and toy9
are broken.
Note: toy1, toy2, fibonacci
and ModuleMaker
do build, by the way.
All the build that fail, fail with
/usr/include/llvm/ExecutionEngine/Orc/Legacy.h:118:25: error: no matching function for call to object of type '(lambda at ./KaleidoscopeJIT.h:48:13)'
so the first order of business is to fix file KaleidoscopeJIT.h
(however, there are several other differences to the original files in the LLVM github repository).