Reject uses of __int128 on platforms that don't support it. Also move the ugly
'getPointerWidth(0) >= 64' test to be a method on TargetInfo, ready to be properly cleaned up. llvm-svn: 168856
This commit is contained in:
@@ -507,6 +507,8 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
|
||||
TI.getTypeWidth(TI.getWCharType()), TI, Builder);
|
||||
DefineTypeSizeof("__SIZEOF_WINT_T__",
|
||||
TI.getTypeWidth(TI.getWIntType()), TI, Builder);
|
||||
if (TI.hasInt128Type())
|
||||
DefineTypeSizeof("__SIZEOF_INT128__", 128, TI, Builder);
|
||||
|
||||
DefineType("__INTMAX_TYPE__", TI.getIntMaxType(), Builder);
|
||||
DefineType("__UINTMAX_TYPE__", TI.getUIntMaxType(), Builder);
|
||||
|
||||
Reference in New Issue
Block a user