<div dir="ltr">To any particular end? (is there a need for this - I could imagine it's just convenient to implement the way it is now)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 8, 2013 at 5:45 PM, Mark Lacey <span dir="ltr"><<a href="mailto:mark.lacey@apple.com" target="_blank">mark.lacey@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi -<br>
<br>
Please review and let me know if you have any feedback.<br>
<br>
Thanks,<br>
<br>
Mark<br>
<br>
----------------<br>
<br>
<br>
Currently the only way to create a CodeGenTypes class is to pass it a<br>
CodeGenModule, which is primarily used to initialize the members of<br>
CodeGenTypes, but is also used in a couple of places to gain access to a<br>
few members of CodeGenModule (OpenCLRuntime, DebugInfo,<br>
and TargetCodeGenInfo).<br>
<br>
This change makes it possible to construct a CodeGenTypes class<br>
independently of a CodeGenModule. The constructor to CodeGenTypes is<br>
updated to explicitly have parameters for each of its members, and new<br>
pointer members are added for the information that was being referenced<br>
from CodeGenModule.<br>
---<br>
lib/CodeGen/CGCall.cpp        |   2 +-<br>
lib/CodeGen/CodeGenModule.cpp |  12 +++--<br>
lib/CodeGen/CodeGenTypes.cpp  |  24 ++++++----<br>
lib/CodeGen/CodeGenTypes.h    |  28 +++++++++--<br>
lib/CodeGen/TargetInfo.cpp    | 106 ++++++++++++++++++++++++------------------<br>
5 files changed, 111 insertions(+), 61 deletions(-)<br>
<br>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>