On Oct 31, 2008, at 4:57 PM, Mike Stump wrote: >> = >> ===================================================================== >> --- cfe/trunk/lib/Basic/TargetInfo.cpp (original) >> +++ cfe/trunk/lib/Basic/TargetInfo.cpp Fri Oct 31 04:52:39 2008 > >> >> + WCharType = UnsignedInt; > >> URL: >> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=58501&r1=58500&r2=58501&view=diff >> = >> ===================================================================== >> --- cfe/trunk/lib/Basic/Targets.cpp (original) >> +++ cfe/trunk/lib/Basic/Targets.cpp Fri Oct 31 04:52:39 2008 > >> >> + WCharType = UnsignedInt; > > Hum, in C++, it is a different type, distinct from all other types. I > didn't check to see if that is handled someplace else, but, if not, we > should have a FIXME here saying to do something better for C++.
IIUC, TargetInfo here is telling us what the underlying type of wchar_t will be, and unsigned int makes sense there. That wchar_t is a unique type is already handled by Clang's type system. - Doug _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
