Hi,
this patch ensures that clang does contain all LLVM symbols and that no
unused symbols are dead code eliminated during compilation. This fixes
the plugin mechanism, as plugins don't break anymore because of missing
symbols.
This increases the size of the clang binary from 43029853 to 43915291
bytes (around 2%). As the increase is minimal, I think the patch is
worth integrating.
Cheers
Tobi
>From 2fe400924658b70165a5d1ba4a66a2f108276fa9 Mon Sep 17 00:00:00 2001
From: Tobias Grosser <[email protected]>
Date: Sun, 23 Oct 2011 15:14:32 -0700
Subject: [PATCH] Add LinkAllPasses to clang
This patch ensures that no passes are deleted from clang, such that the loading
of plugins does not fail because of passes being unavailable. This increases
the size of the clang binary from 43029853 to 43915291 bytes (around 2%).
---
tools/driver/cc1_main.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tools/driver/cc1_main.cpp b/tools/driver/cc1_main.cpp
index 27f79b7..f1fb68d 100644
--- a/tools/driver/cc1_main.cpp
+++ b/tools/driver/cc1_main.cpp
@@ -30,6 +30,7 @@
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/Timer.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/LinkAllPasses.h"
#include <cstdio>
using namespace clang;
--
1.7.4.1
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits