Chris Lattner b1ab458047 Factor this code out into a few methods.
Implement the start of global ctor optimization.  It is currently smart
enough to remove the global ctor for cases like this:

struct foo {
  foo() {}
} x;

... saving a bit of startup time for the program.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23433 91177308-0d34-0410-b5e6-96231b3b80d8
2005-09-26 01:43:45 +00:00
..
2005-09-12 17:03:55 +00:00
2005-08-27 18:50:39 +00:00
2005-07-07 23:21:43 +00:00
2005-07-07 23:21:43 +00:00
2005-08-24 10:07:20 +00:00