diff options
| author | Reid Kleckner <reid@kleckner.net> | 2013-08-06 22:51:21 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2013-08-06 22:51:21 +0000 |
| commit | d78273f4fdce247ab52cb26ed0d1f908efb44f39 (patch) | |
| tree | 23740d6e8113b11c35a3ea4f3ad42e37c51afbed /llvm/utils | |
| parent | a7cd6bf3bbf9d1efc2ec7b9c617209408caf6a86 (diff) | |
| download | bcm5719-llvm-d78273f4fdce247ab52cb26ed0d1f908efb44f39.tar.gz bcm5719-llvm-d78273f4fdce247ab52cb26ed0d1f908efb44f39.zip | |
Remove some std stream usage from Support and TableGen
LLVM's coding standards recommend raw_ostream and MemoryBuffer for
reading and writing text.
This has the side effect of allowing clang to compile more of Support
and TableGen in the Microsoft C++ ABI.
llvm-svn: 187826
Diffstat (limited to 'llvm/utils')
| -rw-r--r-- | llvm/utils/TableGen/AsmMatcherEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp index 840c9aa34e6..468ce1c007d 100644 --- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp +++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp @@ -2069,7 +2069,8 @@ static void emitIsSubclass(CodeGenTarget &Target, OS << " if (A == B)\n"; OS << " return true;\n\n"; - std::stringstream SS; + std::string OStr; + raw_string_ostream SS(OStr); unsigned Count = 0; SS << " switch (A) {\n"; SS << " default:\n"; |

