r213066 - Don't create non-temporary twines.
Joerg Sonnenberger
joerg at bec.de
Tue Jul 15 05:18:41 PDT 2014
Author: joerg
Date: Tue Jul 15 07:18:40 2014
New Revision: 213066
URL: http://llvm.org/viewvc/llvm-project?rev=213066&view=rev
Log:
Don't create non-temporary twines.
Modified:
cfe/trunk/lib/Frontend/InitPreprocessor.cpp
Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=213066&r1=213065&r2=213066&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original)
+++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Tue Jul 15 07:18:40 2014
@@ -201,9 +201,8 @@ static void DefineFmt(const Twine &Prefi
bool IsSigned = TI.isTypeSigned(Ty);
StringRef FmtModifier = TI.getTypeFormatModifier(Ty);
for (const char *Fmt = IsSigned ? "di" : "ouxX"; *Fmt; ++Fmt) {
- Twine Macro = Prefix + "_FMT" + Twine(*Fmt) + "__";
- Twine Value = Twine("\"") + FmtModifier + Twine(*Fmt) + "\"";
- Builder.defineMacro(Macro, Value);
+ Builder.defineMacro(Prefix + "_FMT" + Twine(*Fmt) + "__",
+ Twine("\"") + FmtModifier + Twine(*Fmt) + "\"");
}
}
More information about the cfe-commits
mailing list