forked from OSchip/llvm-project
parent
6473fb7916
commit
e44b45e757
|
|
@ -195,12 +195,12 @@ static std::string QuoteNameIfNeeded(const std::string &Name) {
|
||||||
} else {
|
} else {
|
||||||
needsQuotes = true;
|
needsQuotes = true;
|
||||||
result += "\\";
|
result += "\\";
|
||||||
char hex1 = C & 0x0F;
|
char hex1 = (C >> 4) & 0x0F;
|
||||||
if (hex1 < 10)
|
if (hex1 < 10)
|
||||||
result += hex1 + '0';
|
result += hex1 + '0';
|
||||||
else
|
else
|
||||||
result += hex1 - 10 + 'A';
|
result += hex1 - 10 + 'A';
|
||||||
char hex2 = (C >> 4) & 0x0F;
|
char hex2 = C & 0x0F;
|
||||||
if (hex2 < 10)
|
if (hex2 < 10)
|
||||||
result += hex2 + '0';
|
result += hex2 + '0';
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue