projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62277b3
)
Don't create non-temporary twines.
author
Joerg Sonnenberger
<joerg@bec.de>
Tue, 15 Jul 2014 12:18:40 +0000
(12:18 +0000)
committer
Joerg Sonnenberger
<joerg@bec.de>
Tue, 15 Jul 2014 12:18:40 +0000
(12:18 +0000)
llvm-svn: 213066
clang/lib/Frontend/InitPreprocessor.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Frontend/InitPreprocessor.cpp
b/clang/lib/Frontend/InitPreprocessor.cpp
index
b53fff9
..
091edd4
100644
(file)
--- 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) + "\"");
}
}