mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
Adds extern "C" ints to the .cpp files that use RegisterTarget, as
well as 2 files that use "Registrator"s. These are to be used by the MSVC builds, as the Win32 linker does not include libs that are otherwise unreferenced, even if global constructors in the lib have side-effects. Patch by Scott Graham! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,6 +19,14 @@
|
||||
#include "llvm/Target/TargetMachineRegistry.h"
|
||||
using namespace llvm;
|
||||
|
||||
/// MipsTargetMachineModule - Note that this is used on hosts that
|
||||
/// cannot link in a library unless there are references into the
|
||||
/// library. In particular, it seems that it is not possible to get
|
||||
/// things to work on Win32 without this. Though it is unused, do not
|
||||
/// remove it.
|
||||
extern "C" int MipsTargetMachineModule;
|
||||
int MipsTargetMachineModule = 0;
|
||||
|
||||
// Register the target.
|
||||
static RegisterTarget<MipsTargetMachine> X("mips", "Mips");
|
||||
static RegisterTarget<MipselTargetMachine> Y("mipsel", "Mipsel");
|
||||
|
Reference in New Issue
Block a user