mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +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:
@@ -21,6 +21,13 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
/// AlphaTargetMachineModule - 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 AlphaTargetMachineModule;
|
||||
int AlphaTargetMachineModule = 0;
|
||||
|
||||
// Register the targets
|
||||
static RegisterTarget<AlphaTargetMachine> X("alpha", "Alpha [experimental]");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user