projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b40744
)
targets that support quotes for mangled names still need to escape newlines
author
Chris Lattner
<sabre@nondot.org>
Fri, 15 Feb 2008 18:54:56 +0000
(18:54 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 15 Feb 2008 18:54:56 +0000
(18:54 +0000)
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
lib/VMCore/Mangler.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Mangler.cpp
b/lib/VMCore/Mangler.cpp
index 777e5b51eebb6ade1c614d7e26080389e0e6625e..7448e7de444ae78d462fe3be5535bf672db9688a 100644
(file)
--- a/
lib/VMCore/Mangler.cpp
+++ b/
lib/VMCore/Mangler.cpp
@@
-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;
}