aboutsummaryrefslogtreecommitdiffstats
path: root/lib/TableGen
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-08-06 22:51:21 +0000
committerReid Kleckner <reid@kleckner.net>2013-08-06 22:51:21 +0000
commit47cfec02842f885b46ea0d3c812793e660691640 (patch)
tree5f1f2fb5d7b3fbc2dc7e66be64a165b75f654ec2 /lib/TableGen
parent2d66d4cf42022239bfc9cd260a7b924400139cb5 (diff)
downloadexternal_llvm-47cfec02842f885b46ea0d3c812793e660691640.zip
external_llvm-47cfec02842f885b46ea0d3c812793e660691640.tar.gz
external_llvm-47cfec02842f885b46ea0d3c812793e660691640.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen')
-rw-r--r--lib/TableGen/TGParser.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/TableGen/TGParser.cpp b/lib/TableGen/TGParser.cpp
index 86ad2a6..965cd00 100644
--- a/lib/TableGen/TGParser.cpp
+++ b/lib/TableGen/TGParser.cpp
@@ -1271,10 +1271,11 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType,
if (ItemType != 0) {
ListRecTy *ListType = dyn_cast<ListRecTy>(ItemType);
if (ListType == 0) {
- std::stringstream s;
- s << "Type mismatch for list, expected list type, got "
- << ItemType->getAsString();
- TokError(s.str());
+ std::string s;
+ raw_string_ostream ss(s);
+ ss << "Type mismatch for list, expected list type, got "
+ << ItemType->getAsString();
+ TokError(ss.str());
return 0;
}
GivenListTy = ListType;