mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-24 14:33:40 +00:00
targets that support quotes for mangled names still need to escape newlines
when they occur in the name, just like " is escaped. llvm-svn: 47169
This commit is contained in:
parent
b9e1a37497
commit
bab03a1b50
@ -96,6 +96,8 @@ std::string Mangler::makeNameProper(const std::string &X, const char *Prefix) {
|
||||
for (std::string::const_iterator E = X.end(); I != E; ++I) {
|
||||
if (*I == '"')
|
||||
Result += "_QQ_";
|
||||
else if (*I == '\n')
|
||||
Result += "_NL_";
|
||||
else
|
||||
Result += *I;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user