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:
Oscar Fuentes
2008-11-15 21:36:30 +00:00
parent 232ed2d373
commit 92adc19be9
13 changed files with 91 additions and 0 deletions
@@ -1112,3 +1112,6 @@ namespace {
}
} Registrator;
}
extern "C" int PowerPCAsmPrinterForceLink;
int PowerPCAsmPrinterForceLink = 0;