[cfe-commits] [llvm-commits] [Patch] Move TargetData from Target to Support/VMCore
Kim Gräsman
kim.grasman at gmail.com
Thu Oct 4 13:32:51 PDT 2012
HI Micah,
On Thursday, October 4, 2012, Villmow, Micah wrote:
> Chris, the problem with steps #2/#3 is that plenty of clients have forward
> declarations of TargetData and the typedef won't work in this case, so I
> need to update the clients anyways.
>
One trick I've used as an alternative to typedefs is to just derive from
the old class, e.g.
class NewName : public TargetData {};
This is forward-declarable just as well as TargetData itself.
FWIW,
- Kim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121004/08a87d82/attachment.html>
More information about the cfe-commits
mailing list