Adds extern "C" ints to the .cpp files that use RegisterTarget, as
authorOscar Fuentes <ofv@wanadoo.es>
Sat, 15 Nov 2008 21:36:30 +0000 (21:36 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Sat, 15 Nov 2008 21:36:30 +0000 (21:36 +0000)
commit92adc19be95347225f713db8cc1b5e22ac08bb5e
tree3c71e3bd9d9a4dc91657ed0b6e33f1be30d72774
parent232ed2d3733b497f3a1b7a392eb0c9e60cfed228
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
13 files changed:
lib/Target/ARM/ARMTargetMachine.cpp
lib/Target/Alpha/AlphaTargetMachine.cpp
lib/Target/CBackend/CBackend.cpp
lib/Target/CellSPU/SPUTargetMachine.cpp
lib/Target/CppBackend/CPPBackend.cpp
lib/Target/MSIL/MSILWriter.cpp
lib/Target/Mips/MipsTargetMachine.cpp
lib/Target/PIC16/PIC16TargetMachine.cpp
lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
lib/Target/PowerPC/PPCTargetMachine.cpp
lib/Target/Sparc/SparcTargetMachine.cpp
lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
lib/Target/XCore/XCoreTargetMachine.cpp