mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Revert "YAMLIO: Encode ambiguous hex strings explicitly"
This reverts commit r205839. It broke several tests in lld. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205857 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -561,11 +561,8 @@ void Output::scalarString(StringRef &S) {
|
||||
this->outputUpToEndOfLine("''");
|
||||
return;
|
||||
}
|
||||
bool isOctalString = S.front() == '0' &&
|
||||
S.find_first_not_of('0') != StringRef::npos &&
|
||||
!S.startswith_lower("0x");
|
||||
if (S.find_first_not_of(ScalarSafeChars) == StringRef::npos &&
|
||||
!isspace(S.front()) && !isspace(S.back()) && !isOctalString) {
|
||||
!isspace(S.front()) && !isspace(S.back())) {
|
||||
// If the string consists only of safe characters, print it out without
|
||||
// quotes.
|
||||
this->outputUpToEndOfLine(S);
|
||||
|
Reference in New Issue
Block a user