Add __SIZE_WIDTH__ to eventually replace __SIZE_TYPE__ in stdint.h.

llvm-svn: 89346
This commit is contained in:
Ken Dyck
2009-11-19 13:42:09 +00:00
parent 9b25f781c5
commit 575128656e
2 changed files with 12 additions and 0 deletions

View File

@@ -396,6 +396,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
DefineType("__INTPTR_TYPE__", TI.getIntPtrType(), Buf);
DefineTypeWidth("__INTPTR_WIDTH__", TI.getIntPtrType(), TI, Buf);
DefineType("__SIZE_TYPE__", TI.getSizeType(), Buf);
DefineTypeWidth("__SIZE_WIDTH__", TI.getSizeType(), TI, Buf);
DefineType("__WCHAR_TYPE__", TI.getWCharType(), Buf);
DefineType("__WINT_TYPE__", TI.getWIntType(), Buf);