Splitting up CGCXX.cpp

So the CGCXX.cpp file is growing large and unwieldy, and I think it's time to split it into multiple files. My thinking is:

CGExprCXX.cpp - Expressions
CGDeclCXX.cpp - Declarations
CGClassCXX.cpp - Class related code generation (ctors, dtors, assignment operators etc)
CGVTableCXX.cpp - VTable related code generation

Sound good? I'm not saying that we should split everything up immediately but that we can migrate code over to these new files when necessary.

Anders

Having it all in one place make debugging easier IMO. We have files larger than CGCXX.

- fariborz

Sounds good to me, I prefer logical decomposition,

-Chris

1 sep 2009 kl. 11.51 skrev Fariborz Jahanian:

Having it all in one place make debugging easier IMO. We have files larger than CGCXX.

- fariborz

In what way does it make debugging easier? I actually find it easier to have all related functions in a single file :slight_smile:

Anders

1 sep 2009 kl. 11.51 skrev Fariborz Jahanian:

Having it all in one place make debugging easier IMO. We have files larger than CGCXX.

- fariborz

In what way does it make debugging easier? I actually find it easier to have all related functions in a single file :slight_smile:

Not a big deal. I like all related functionality in one file (because of my work on objc-act.c which has all the
objective-c gcc stuff in the same file :).

- Fariborz