A few corrections: The patch still uses the perl version of llvm-config. If you try with llvm-3.1 just use llvm-config since it's a normal executable instead of perl script in this version.