ispc/ispc — pull request #404 by mmp (2012-11-16 19:06:13+00:00)
Title: Fix build with LLVM top-of-tree

This fixes some breakage with LLVM top of tree (where a bunch of clang API entrypoints have changed).

However, I'm now also seeing link errors like this:

```
Undefined symbols for architecture x86_64:
"typeinfo for llvm::ModulePass", referenced from:
typeinfo for MakeInternalFuncsStaticPassin opt.o
"typeinfo for llvm::ImmutablePass", referenced from:
typeinfo for llvm::TargetTransformInfoin opt.o
"typeinfo for llvm::BasicBlockPass", referenced from:
typeinfo for VSelMovmskOptin opt.o
typeinfo for ImproveMemoryOpsPassin opt.o
typeinfo for GatherCoalescePassin opt.o
typeinfo for ReplacePseudoMemoryOpsPassin opt.o
typeinfo for IsCompileTimeConstantPassin opt.o
typeinfo for IntrinsicsOptin opt.o
ld: symbol(s) not found for architecture x86_64
```

Which seems to be related to mixing LLVM libraries, which are compiled with no RTTI information and ispc, which is. Unfortunately I don't have time to dig into that part right now...