[llvm-commits] [llvm] r115927 - in /llvm/trunk: include/llvm-c/Core.h include/llvm/InitializePasses.h lib/Transforms/Scalar/Scalar.cpp lib/Transforms/Utils/CMakeLists.txt lib/Transforms/Utils/Utils.cpp lib/VMCore/Core.cpp

Chris Lattner clattner at apple.com
Sat Jan 15 23:11:25 PST 2011


On Oct 7, 2010, at 10:55 AM, Owen Anderson wrote:

> Author: resistor
> Date: Thu Oct  7 12:55:47 2010
> New Revision: 115927
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=115927&view=rev
> Log:
> Next step on the getting-rid-of-static-ctors train: begin adding per-library
> initialization functions that initialize the set of passes implemented in
> that library.  Add C bindings for these functions as well.

Hi Owen,

This is a really unsatisfactory way to handle this.  Doing this means that Scalar.cpp will depend on *all* of the transformation in the library, so someone linking in scalar.cpp will pull in every single .o file in the archive.  The idea of the previous design was that you'd only link in the passes you actually need.

-Chris





More information about the llvm-commits mailing list