diff options
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/CodeGen/Mangle.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/Mangle.cpp b/clang/lib/CodeGen/Mangle.cpp index 58b0246e363..f408849e95e 100644 --- a/clang/lib/CodeGen/Mangle.cpp +++ b/clang/lib/CodeGen/Mangle.cpp @@ -304,6 +304,10 @@ bool MangleContext::shouldMangleDeclName(const NamedDecl *D) {        return false;    } +  // Class members are always mangled. +  if (D->getDeclContext()->isRecord()) +    return true; +    // C functions and "main" are not mangled.    if ((FD && FD->isMain()) || isInCLinkageSpecification(D))      return false;  | 

