mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
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
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user