From: Sean Hunt Date: Fri, 4 Dec 2009 21:01:37 +0000 (+0000) Subject: Switch mangling of literal operator names to a string that's X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2421f66b945510c7d049f6d89e7cc57d0013add8;p=clang Switch mangling of literal operator names to a string that's a) legal b) likely to be chosen as the official mangling This will break ABI compatibility with all literal operator names, so you may need to recompile any such code. Sorry. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90587 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp index a20dec6ef8..019a39e28b 100644 --- a/lib/CodeGen/Mangle.cpp +++ b/lib/CodeGen/Mangle.cpp @@ -483,7 +483,7 @@ void CXXNameMangler::mangleUnqualifiedName(const NamedDecl *ND) { case DeclarationName::CXXLiteralOperatorName: // Guessing based on existing ABI. - Out << "ul"; + Out << "li"; mangleSourceName(Name.getCXXLiteralIdentifier()); break;