mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
targets that support quotes for mangled names still need to escape newlines
when they occur in the name, just like " is escaped. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3b407444c9
commit
705da96697
@ -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…
Reference in New Issue
Block a user