mock out llvm.core