summaryrefslogtreecommitdiffstats
path: root/include/llvm/ExecutionEngine/JIT.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ExecutionEngine/JIT.h')
-rw-r--r--include/llvm/ExecutionEngine/JIT.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/ExecutionEngine/JIT.h b/include/llvm/ExecutionEngine/JIT.h
index d4d1e73..6013db4 100644
--- a/include/llvm/ExecutionEngine/JIT.h
+++ b/include/llvm/ExecutionEngine/JIT.h
@@ -18,9 +18,7 @@
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include <cstdlib>
-namespace llvm {
- extern void LinkInJIT();
-}
+extern "C" void LLVMLinkInJIT();
namespace {
struct ForceJITLinking {
@@ -32,7 +30,7 @@ namespace {
if (std::getenv("bar") != (char*) -1)
return;
- llvm::LinkInJIT();
+ LLVMLinkInJIT();
}
} ForceJITLinking;
}
OpenPOWER on IntegriCloud