Reapply patch from r62553, with a fix to avoid looking for an ffi.h that isn't
authorNick Lewycky <nicholas@mxc.ca>
Wed, 4 Feb 2009 06:26:47 +0000 (06:26 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 4 Feb 2009 06:26:47 +0000 (06:26 +0000)
commitf9c5c5c7a25a3c549cbbc523bf2c8f4e895c20b6
treef82420872cbc648dab7c2c983b0b163655b62dc3
parentfe9388ccb4d2449e8e6a62053479a0ba74ae0b2d
Reapply patch from r62553, with a fix to avoid looking for an ffi.h that isn't
there.

This changes the interpreter to use libffi. After this patch, the interpreter
will barely be able to call any external functions if built on a system without
libffi installed (just enough to pass 'make check' really). But with libffi,
we can now call any function that isn't variadic or taking a struct or vector
parameter (but pointer to struct is fine). Patch by Alexei Svitkine!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63723 91177308-0d34-0410-b5e6-96231b3b80d8
Makefile.config.in
autoconf/configure.ac
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp