aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CompilerDriver/Main.inc
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-06-23 20:46:48 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-06-23 20:46:48 +0000
commitd80d8690af2ce54f7f624889b5628fa3dc61cc27 (patch)
treee136bb9eca617d20f273f938a30e9138976cfea6 /include/llvm/CompilerDriver/Main.inc
parent06509db63088f7e4aed4e47fc9c73317eff461ec (diff)
downloadexternal_llvm-d80d8690af2ce54f7f624889b5628fa3dc61cc27.tar.gz
external_llvm-d80d8690af2ce54f7f624889b5628fa3dc61cc27.tar.bz2
external_llvm-d80d8690af2ce54f7f624889b5628fa3dc61cc27.zip
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
Diffstat (limited to 'include/llvm/CompilerDriver/Main.inc')
-rw-r--r--include/llvm/CompilerDriver/Main.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CompilerDriver/Main.inc b/include/llvm/CompilerDriver/Main.inc
index e81acf1447..638189387c 100644
--- a/include/llvm/CompilerDriver/Main.inc
+++ b/include/llvm/CompilerDriver/Main.inc
@@ -19,6 +19,7 @@
#include "llvm/CompilerDriver/CompilationGraph.h"
#include "llvm/CompilerDriver/Error.h"
+#include "llvm/CompilerDriver/ForceLinkage.h"
#include "llvm/CompilerDriver/Plugin.h"
#include "llvm/System/Path.h"
@@ -85,6 +86,8 @@ namespace {
int main(int argc, char** argv) {
try {
+ ForceLinkage();
+
LanguageMap langMap;
CompilationGraph graph;