From: Tobias Grosser Date: Tue, 1 Nov 2011 01:34:59 +0000 (+0000) Subject: Add LinkAllPasses to clang X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f358c8af7bc0ed58fc1f009aabe928732d3d2316;p=clang 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%). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143414 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/driver/cc1_main.cpp b/tools/driver/cc1_main.cpp index 27f79b7e66..f1fb68d539 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 using namespace clang;