From: Benjamin Kramer Date: Tue, 8 Jul 2014 16:07:36 +0000 (+0000) Subject: Turn some Twine locals into const char * variables. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce416398ef00fdf1b54f0a146c302b7a0980a21a;p=platform%2Fupstream%2Fllvm.git Turn some Twine locals into const char * variables. No functionality change, just stylistic cleanup. Change made by clang-tidy and clang-format. llvm-svn: 212544 --- diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index f987236..f03348d 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -223,7 +223,7 @@ static void DefineExactWidthIntType(TargetInfo::IntType Ty, if (TypeWidth == 64) Ty = IsSigned ? TI.getInt64Type() : TI.getIntTypeByWidth(64, false); - Twine Prefix = IsSigned ? "__INT" : "__UINT"; + const char *Prefix = IsSigned ? "__INT" : "__UINT"; DefineType(Prefix + Twine(TypeWidth) + "_TYPE__", Ty, Builder); @@ -244,7 +244,7 @@ static void DefineExactWidthIntTypeSize(TargetInfo::IntType Ty, if (TypeWidth == 64) Ty = IsSigned ? TI.getInt64Type() : TI.getIntTypeByWidth(64, false); - Twine Prefix = IsSigned ? "__INT" : "__UINT"; + const char *Prefix = IsSigned ? "__INT" : "__UINT"; DefineTypeSize(Prefix + Twine(TypeWidth) + "_MAX__", Ty, TI, Builder); } @@ -255,7 +255,7 @@ static void DefineLeastWidthIntType(unsigned TypeWidth, bool IsSigned, if (Ty == TargetInfo::NoInt) return; - Twine Prefix = IsSigned ? "__INT_LEAST" : "__UINT_LEAST"; + const char *Prefix = IsSigned ? "__INT_LEAST" : "__UINT_LEAST"; DefineType(Prefix + Twine(TypeWidth) + "_TYPE__", Ty, Builder); DefineTypeSize(Prefix + Twine(TypeWidth) + "_MAX__", Ty, TI, Builder); } @@ -268,7 +268,7 @@ static void DefineFastIntType(unsigned TypeWidth, bool IsSigned, if (Ty == TargetInfo::NoInt) return; - Twine Prefix = IsSigned ? "__INT_FAST" : "__UINT_FAST"; + const char *Prefix = IsSigned ? "__INT_FAST" : "__UINT_FAST"; DefineType(Prefix + Twine(TypeWidth) + "_TYPE__", Ty, Builder); DefineTypeSize(Prefix + Twine(TypeWidth) + "_MAX__", Ty, TI, Builder); }