Add simple arg passing to MC-JIT and support for exit() call.
authorJim Grosbach <grosbach@apple.com>
Tue, 22 Mar 2011 18:05:27 +0000 (18:05 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 22 Mar 2011 18:05:27 +0000 (18:05 +0000)
commit34714a06096f854c76371295d8c20b017fbba50b
tree331ffaad455fbc41ceaeb4f0f9e4cab18966401e
parent8bf0ecdbf6d9a645638806441e1b65cb308cd3e7
Add simple arg passing to MC-JIT and support for exit() call.

Support argument passing simple, common, prototypes directly. More
complicated scenarios will require building up a stub function, which the
MC-JIT isn't set up to handle yet.

Add Intercept.cpp, which is just a copy from ExecutionEngine/JIT for now,
to handle looking looking up external symbol names. This probably more
properly belongs as part of RuntimeDyld. It'll migrate there as things
flesh out more fully.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128090 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/MCJIT/CMakeLists.txt
lib/ExecutionEngine/MCJIT/MCJIT.cpp
lib/ExecutionEngine/MCJIT/MCJIT.h