Andrew Scull | 5e1ddfa | 2018-08-14 10:06:54 +0100 | [diff] [blame] | 1 | //===-- Interpreter.h - Abstract Execution Engine Interface -----*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file forces the interpreter to link in on certain operating systems. |
| 11 | // (Windows). |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #ifndef LLVM_EXECUTIONENGINE_INTERPRETER_H |
| 16 | #define LLVM_EXECUTIONENGINE_INTERPRETER_H |
| 17 | |
| 18 | #include "llvm/ExecutionEngine/ExecutionEngine.h" |
| 19 | |
| 20 | extern "C" void LLVMLinkInInterpreter(); |
| 21 | |
| 22 | namespace { |
| 23 | struct ForceInterpreterLinking { |
| 24 | ForceInterpreterLinking() { LLVMLinkInInterpreter(); } |
| 25 | } ForceInterpreterLinking; |
| 26 | } |
| 27 | |
| 28 | #endif |