mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-01 13:17:01 +00:00
[Support/YAMLParser] Use rtrim on plain scalars.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1630,9 +1630,7 @@ StringRef ScalarNode::getValue(SmallVectorImpl<char> &Storage) const {
|
|||||||
return UnquotedValue;
|
return UnquotedValue;
|
||||||
}
|
}
|
||||||
// Plain or block.
|
// Plain or block.
|
||||||
size_t trimtrail = Value.rfind(' ');
|
return Value.rtrim(" ");
|
||||||
return Value.drop_back(
|
|
||||||
trimtrail == StringRef::npos ? 0 : Value.size() - trimtrail);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StringRef ScalarNode::unescapeDoubleQuoted( StringRef UnquotedValue
|
StringRef ScalarNode::unescapeDoubleQuoted( StringRef UnquotedValue
|
||||||
|
Reference in New Issue
Block a user