Chris Lattner ca854922fb 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.

llvm-svn: 23433
2005-09-26 01:43:45 +00:00
..
2005-04-21 23:48:37 +00:00
2005-09-24 23:43:33 +00:00
2005-09-23 18:49:09 +00:00