diff options
| author | Yaron Keren <yaron.keren@gmail.com> | 2015-03-10 07:33:23 +0000 |
|---|---|---|
| committer | Yaron Keren <yaron.keren@gmail.com> | 2015-03-10 07:33:23 +0000 |
| commit | 09fb7c6e7a173a1a8bdb7a53438b0c75250491b8 (patch) | |
| tree | b26517281f61c7217a0e6aef1dfe85a2242592fe /clang/utils | |
| parent | 62b63b197dc7f1c7eb80f3b15ede1626ec637ffb (diff) | |
| download | bcm5719-llvm-09fb7c6e7a173a1a8bdb7a53438b0c75250491b8.tar.gz bcm5719-llvm-09fb7c6e7a173a1a8bdb7a53438b0c75250491b8.zip | |
Teach raw_ostream to accept SmallString.
Saves adding .str() call to any raw_ostream << SmallString usage
and a small step towards making .str() consistent in the ADTs by
removing one of the SmallString::str() use cases, discussion at
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20141013/240026.html
I'll update the Phabricator patch http://reviews.llvm.org/D6372
for review of the Twine SmallString support, it's more complex
than this one.
llvm-svn: 231763
Diffstat (limited to 'clang/utils')
| -rw-r--r-- | clang/utils/TableGen/ClangAttrEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp b/clang/utils/TableGen/ClangAttrEmitter.cpp index 83629ec3605..6369c342ce7 100644 --- a/clang/utils/TableGen/ClangAttrEmitter.cpp +++ b/clang/utils/TableGen/ClangAttrEmitter.cpp @@ -1162,7 +1162,7 @@ writePrettyPrintFunction(Record &R, OS << " case " << I << " : {\n" - " OS << \"" + Prefix.str() + Spelling.str(); + " OS << \"" << Prefix << Spelling; if (Variety == "Pragma") { OS << " \";\n"; @@ -1190,7 +1190,7 @@ writePrettyPrintFunction(Record &R, if (!Args.empty()) OS << ")"; - OS << Suffix.str() + "\";\n"; + OS << Suffix + "\";\n"; OS << " break;\n" |

