mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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
This commit is contained in:
@@ -18,9 +18,7 @@
|
||||
#include "llvm/ExecutionEngine/ExecutionEngine.h"
|
||||
#include <cstdlib>
|
||||
|
||||
namespace llvm {
|
||||
extern void LinkInInterpreter();
|
||||
}
|
||||
extern "C" void LLVMLinkInInterpreter();
|
||||
|
||||
namespace {
|
||||
struct ForceInterpreterLinking {
|
||||
@@ -32,7 +30,7 @@ namespace {
|
||||
if (std::getenv("bar") != (char*) -1)
|
||||
return;
|
||||
|
||||
llvm::LinkInInterpreter();
|
||||
LLVMLinkInInterpreter();
|
||||
}
|
||||
} ForceInterpreterLinking;
|
||||
}
|
||||
|
Reference in New Issue
Block a user