From d78273f4fdce247ab52cb26ed0d1f908efb44f39 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 6 Aug 2013 22:51:21 +0000 Subject: 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 --- llvm/utils/TableGen/AsmMatcherEmitter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/utils') 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"; -- cgit v1.2.3