diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-15 18:54:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-15 18:54:56 +0000 |
commit | 0887969c042311e5705947194e79404f4c8bc66f (patch) | |
tree | 986114b8e77ba4ad759742659dddb4a6a62454f2 /lib/VMCore/Mangler.cpp | |
parent | 7038361ead2c49f670b618d7ede8dff929efff1c (diff) | |
download | external_llvm-0887969c042311e5705947194e79404f4c8bc66f.zip external_llvm-0887969c042311e5705947194e79404f4c8bc66f.tar.gz external_llvm-0887969c042311e5705947194e79404f4c8bc66f.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore/Mangler.cpp')
-rw-r--r-- | lib/VMCore/Mangler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp index 777e5b5..7448e7d 100644 --- 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; } |