diff options
Diffstat (limited to 'lib/AST/ItaniumMangle.cpp')
-rw-r--r-- | lib/AST/ItaniumMangle.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/AST/ItaniumMangle.cpp b/lib/AST/ItaniumMangle.cpp index d427b082a4..21c499317f 100644 --- a/lib/AST/ItaniumMangle.cpp +++ b/lib/AST/ItaniumMangle.cpp @@ -385,15 +385,6 @@ bool ItaniumMangleContext::shouldMangleDeclName(const NamedDecl *D) { // C functions are not mangled. if (L == CLanguageLinkage) return false; - - // FIXME: Users assume they know the mangling of static functions - // declared in extern "C" contexts, so we cannot always mangle them. - // As an improvement, maybe we could mangle them only if they are actually - // overloaded. - const DeclContext *DC = FD->getDeclContext(); - if (!DC->isRecord() && - FD->getFirstDeclaration()->getDeclContext()->isExternCContext()) - return false; } // Otherwise, no mangling is done outside C++ mode. |