[PATCH] TargetInfo: Use DataLayout to compute pointer width in getPointerWidth()

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Jun 25 14:13:52 PDT 2014

> Hi Tom,
> TargetInfo is meant to be independent of DataLayout IIRC, otherwise frontend
> functionality like semantic analysis would become dependent on backend
> targets.

Well, on the target datalayout. That is currently constructed in
clang. My only concern is if this would make it harder to change clang
in the future to use llvm provided datalayouts.


More information about the cfe-commits mailing list