As usual this file has moved around from version to version.
This simplifies the code in module.cpp a bit. But it is also the base to implement a pragma to place an arbitrary function in llvm.global_ctors and llvm.global_dtors.
This version works with LLVM 3.0 and 3.1.