[PATCH] Standardize usage of CodeGenModule::getContext().getTargetInfo()

Stephen Lin swlin at post.harvard.edu
Mon Apr 8 21:09:38 PDT 2013


CodeGenModule::getTarget() is implemented as a trivial call to
CodeGenModule::getContext().getTargetInfo(), however, the two are
called interchangeably from other functions without any apparent
semantic distinction between the two.

Since the latter usage is more prevalent and is more fundamental
anyway, I've eliminated the former and converted all usages to the
latter. Also, I've removed CodeGenTypes::getTarget(), since it wasn't
being used.

Please review and commit on my behalf if this is ok.

Thanks,
Stephen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clean-target-info.patch
Type: application/octet-stream
Size: 6872 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130409/81cef3f9/attachment.obj>


More information about the cfe-commits mailing list