]> granicus.if.org Git - clang/commitdiff
Switch mangling of literal operator names to a string that's
authorSean Hunt <rideau3@gmail.com>
Fri, 4 Dec 2009 21:01:37 +0000 (21:01 +0000)
committerSean Hunt <rideau3@gmail.com>
Fri, 4 Dec 2009 21:01:37 +0000 (21:01 +0000)
 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

lib/CodeGen/Mangle.cpp

index a20dec6ef8544a5b0bf64bb29b3885fbcad23916..019a39e28b1b9cde992990ce6b2590b358c09918 100644 (file)
@@ -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;