Make llvmc work again.
authorMikhail Glushenkov <foldr@codedgers.com>
Tue, 23 Jun 2009 20:46:48 +0000 (20:46 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Tue, 23 Jun 2009 20:46:48 +0000 (20:46 +0000)
commitd80d8690af2ce54f7f624889b5628fa3dc61cc27
treee136bb9eca617d20f273f938a30e9138976cfea6
parent06509db63088f7e4aed4e47fc9c73317eff461ec
Make llvmc work again.

Chris recently broke llvmc with his Makefile changes (r75379). That patch made
the global change .o -> .a, which caused built-in llvmc plugins to stop working
since plugin initialization in llvmc is based on static variables not referenced
from the main executable. This patch implements auto-generated forced references
to the plugin libraries.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74000 91177308-0d34-0410-b5e6-96231b3b80d8
Makefile.rules
include/llvm/CompilerDriver/ForceLinkage.h [new file with mode: 0644]
include/llvm/CompilerDriver/ForceLinkageMacros.h [new file with mode: 0644]
include/llvm/CompilerDriver/Main.inc
tools/llvmc/driver/Makefile
utils/TableGen/LLVMCConfigurationEmitter.cpp