diff options
| author | Oscar Fuentes <ofv@wanadoo.es> | 2008-11-15 21:36:30 +0000 |
|---|---|---|
| committer | Oscar Fuentes <ofv@wanadoo.es> | 2008-11-15 21:36:30 +0000 |
| commit | ba4eb2a9dba43e1d4de1e5d378204a8222e1bfea (patch) | |
| tree | 4f99d9355b464c7a565d1b29c0e32fc4d8cf9d71 /llvm/lib/Target/MSIL | |
| parent | e132e2432a3834f6128ffe304b04ec58b415af3a (diff) | |
| download | bcm5719-llvm-ba4eb2a9dba43e1d4de1e5d378204a8222e1bfea.tar.gz bcm5719-llvm-ba4eb2a9dba43e1d4de1e5d378204a8222e1bfea.zip | |
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!
llvm-svn: 59378
Diffstat (limited to 'llvm/lib/Target/MSIL')
| -rw-r--r-- | llvm/lib/Target/MSIL/MSILWriter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/MSIL/MSILWriter.cpp b/llvm/lib/Target/MSIL/MSILWriter.cpp index a27c0cc688a..0cbd01117e5 100644 --- a/llvm/lib/Target/MSIL/MSILWriter.cpp +++ b/llvm/lib/Target/MSIL/MSILWriter.cpp @@ -44,6 +44,13 @@ namespace { }; } +/// MSILTargetMachineModule - 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 MSILTargetMachineModule; +int MSILTargetMachineModule = 0; static RegisterTarget<MSILTarget> X("msil", "MSIL backend"); |

