mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
87b7d8abe9
This is supposed to force-link the Interpreter, by inserting a dead call to LLVMLinkInInterpreter(). Since it is actually an empty function, there is no reason for the call to be dead. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 254956
29 lines
845 B
C++
29 lines
845 B
C++
//===-- Interpreter.h - Abstract Execution Engine Interface -----*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file forces the interpreter to link in on certain operating systems.
|
|
// (Windows).
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_EXECUTIONENGINE_INTERPRETER_H
|
|
#define LLVM_EXECUTIONENGINE_INTERPRETER_H
|
|
|
|
#include "llvm/ExecutionEngine/ExecutionEngine.h"
|
|
|
|
extern "C" void LLVMLinkInInterpreter();
|
|
|
|
namespace {
|
|
struct ForceInterpreterLinking {
|
|
ForceInterpreterLinking() { LLVMLinkInInterpreter(); }
|
|
} ForceInterpreterLinking;
|
|
}
|
|
|
|
#endif
|