Skip to content
Snippets Groups Projects
Commit e240b419 authored by Joerg Sonnenberger's avatar Joerg Sonnenberger
Browse files

Always set the C suffix macro, even if it is empty.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213299 91177308-0d34-0410-b5e6-96231b3b80d8
parent 823c2c36
No related branches found
No related tags found
No related merge requests found
......@@ -239,9 +239,7 @@ static void DefineExactWidthIntType(TargetInfo::IntType Ty,
DefineFmt(Prefix + Twine(TypeWidth), Ty, TI, Builder);
StringRef ConstSuffix(TargetInfo::getTypeConstantSuffix(Ty));
if (!ConstSuffix.empty())
Builder.defineMacro(Prefix + Twine(TypeWidth) + "_C_SUFFIX__", ConstSuffix);
Builder.defineMacro(Prefix + Twine(TypeWidth) + "_C_SUFFIX__", ConstSuffix);
}
static void DefineExactWidthIntTypeSize(TargetInfo::IntType Ty,
......@@ -706,9 +704,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
Builder.defineMacro("__WINT_UNSIGNED__");
// Define exact-width integer types for stdint.h
Builder.defineMacro("__INT" + Twine(TI.getCharWidth()) + "_TYPE__",
"char");
DefineFmt("__INT" + Twine(TI.getCharWidth()), TargetInfo::SignedChar, TI, Builder);
DefineExactWidthIntType(TargetInfo::SignedChar, TI, Builder);
if (TI.getShortWidth() > TI.getCharWidth())
DefineExactWidthIntType(TargetInfo::SignedShort, TI, Builder);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment