mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Remove illegal, unsupported escapes. This fixes program: Ptrdist-bc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7552 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e012132028
commit
d587a84197
@ -296,13 +296,11 @@ static std::string getAsCString(const ConstantArray *CVA) {
|
|||||||
Result += C;
|
Result += C;
|
||||||
} else {
|
} else {
|
||||||
switch(C) {
|
switch(C) {
|
||||||
case '\a': Result += "\\a"; break;
|
|
||||||
case '\b': Result += "\\b"; break;
|
case '\b': Result += "\\b"; break;
|
||||||
case '\f': Result += "\\f"; break;
|
case '\f': Result += "\\f"; break;
|
||||||
case '\n': Result += "\\n"; break;
|
case '\n': Result += "\\n"; break;
|
||||||
case '\r': Result += "\\r"; break;
|
case '\r': Result += "\\r"; break;
|
||||||
case '\t': Result += "\\t"; break;
|
case '\t': Result += "\\t"; break;
|
||||||
case '\v': Result += "\\v"; break;
|
|
||||||
default:
|
default:
|
||||||
Result += '\\';
|
Result += '\\';
|
||||||
Result += toOctal(C >> 6);
|
Result += toOctal(C >> 6);
|
||||||
|
@ -296,13 +296,11 @@ static std::string getAsCString(const ConstantArray *CVA) {
|
|||||||
Result += C;
|
Result += C;
|
||||||
} else {
|
} else {
|
||||||
switch(C) {
|
switch(C) {
|
||||||
case '\a': Result += "\\a"; break;
|
|
||||||
case '\b': Result += "\\b"; break;
|
case '\b': Result += "\\b"; break;
|
||||||
case '\f': Result += "\\f"; break;
|
case '\f': Result += "\\f"; break;
|
||||||
case '\n': Result += "\\n"; break;
|
case '\n': Result += "\\n"; break;
|
||||||
case '\r': Result += "\\r"; break;
|
case '\r': Result += "\\r"; break;
|
||||||
case '\t': Result += "\\t"; break;
|
case '\t': Result += "\\t"; break;
|
||||||
case '\v': Result += "\\v"; break;
|
|
||||||
default:
|
default:
|
||||||
Result += '\\';
|
Result += '\\';
|
||||||
Result += toOctal(C >> 6);
|
Result += toOctal(C >> 6);
|
||||||
|
Loading…
Reference in New Issue
Block a user