Apparently Scalar.hsc still references LLVMAddLoopIndexSplitPass even though it has been removed:
As a result, I'm getting link errors like this:
$ ghc --make Main.hs
[1 of 1] Compiling Main ( Main.hs, Main.o )
Linking Main ...
"_LLVMAddLoopIndexSplitPass", referenced from:
_smpv_info in libHSllvm-0.9.1.2.a(Scalar.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
I'm not sure which versions of LLVM are affected. I'm using LLVM HEAD (as of today), so this may be a recent change.
Fixed in 23afe0c.