[PATCH] Decouple creation of CodeGenTypes from CodeGenModule.
Mark Lacey
mark.lacey at apple.com
Tue Oct 8 17:45:32 PDT 2013
Hi -
Please review and let me know if you have any feedback.
Thanks,
Mark
----------------
Currently the only way to create a CodeGenTypes class is to pass it a
CodeGenModule, which is primarily used to initialize the members of
CodeGenTypes, but is also used in a couple of places to gain access to a
few members of CodeGenModule (OpenCLRuntime, DebugInfo,
and TargetCodeGenInfo).
This change makes it possible to construct a CodeGenTypes class
independently of a CodeGenModule. The constructor to CodeGenTypes is
updated to explicitly have parameters for each of its members, and new
pointer members are added for the information that was being referenced
from CodeGenModule.
---
lib/CodeGen/CGCall.cpp | 2 +-
lib/CodeGen/CodeGenModule.cpp | 12 +++--
lib/CodeGen/CodeGenTypes.cpp | 24 ++++++----
lib/CodeGen/CodeGenTypes.h | 28 +++++++++--
lib/CodeGen/TargetInfo.cpp | 106 ++++++++++++++++++++++++------------------
5 files changed, 111 insertions(+), 61 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Decouple-creation-of-CodeGenTypes-from-CodeGenModule.patch
Type: text/x-patch
Size: 14962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131008/7c0cf183/attachment.bin>
More information about the cfe-commits
mailing list