diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2014-07-15 12:18:40 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2014-07-15 12:18:40 +0000 |
commit | cc43c858553937a1602333f163c34a18209d35db (patch) | |
tree | 7e439730379b6afdf00ca7337d44dd9123c2753d /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 62277b37dbe479538fe42761562e76ea87762941 (diff) | |
download | bcm5719-llvm-cc43c858553937a1602333f163c34a18209d35db.tar.gz bcm5719-llvm-cc43c858553937a1602333f163c34a18209d35db.zip |
Don't create non-temporary twines.
llvm-svn: 213066
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index b53fff9afc2..091edd4f33e 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -201,9 +201,8 @@ static void DefineFmt(const Twine &Prefix, TargetInfo::IntType Ty, 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) + "\""); } } |