aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-06-24 21:09:18 +0000
committerBob Wilson <bob.wilson@apple.com>2009-06-24 21:09:18 +0000
commit3217b3e9cca4b18206aea79324624bc692559c01 (patch)
treeeb4fdad4778b8f5a3e9948d70627239e00202fc7 /lib/ExecutionEngine
parent3a07d2f9a3b056e2b051580128e5b1fddad4c784 (diff)
downloadexternal_llvm-3217b3e9cca4b18206aea79324624bc692559c01.zip
external_llvm-3217b3e9cca4b18206aea79324624bc692559c01.tar.gz
external_llvm-3217b3e9cca4b18206aea79324624bc692559c01.tar.bz2
Fix the Ocaml bindings for the ExecutionEngine: with the change to build
libraries instead of relinked objects, the interpreter, JIT, and native target libraries were not being linked in to an ocaml program using the ExecutionEngine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74117 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.cpp5
-rw-r--r--lib/ExecutionEngine/JIT/JIT.cpp4
2 files changed, 2 insertions, 7 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/lib/ExecutionEngine/Interpreter/Interpreter.cpp
index ded65d5..d7f38ef 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.cpp
+++ b/lib/ExecutionEngine/Interpreter/Interpreter.cpp
@@ -29,10 +29,7 @@ static struct RegisterInterp {
}
-namespace llvm {
- void LinkInInterpreter() {
- }
-}
+extern "C" void LLVMLinkInInterpreter() { }
/// create - Create a new interpreter object. This can never fail.
///
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp
index 43995cb..14d8d5b 100644
--- a/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/lib/ExecutionEngine/JIT/JIT.cpp
@@ -60,9 +60,7 @@ static struct RegisterJIT {
}
-namespace llvm {
- void LinkInJIT() {
- }
+extern "C" void LLVMLinkInJIT() {
}