Revert "[-cxx-abi microsoft] Mangle local TagDecls appropriately"
This reverts commit r190892.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190895 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/MicrosoftMangle.cpp b/lib/AST/MicrosoftMangle.cpp
index 119bc86..8506c4c 100644
--- a/lib/AST/MicrosoftMangle.cpp
+++ b/lib/AST/MicrosoftMangle.cpp
@@ -563,15 +563,9 @@
break;
}
- if (TD->hasDeclaratorForAnonDecl())
- // Anonymous types with no tag or typedef get the name of their
- // declarator mangled in.
- Out << "<unnamed-type-" << TD->getDeclaratorForAnonDecl()->getName()
- << ">@";
- else
- // Anonymous types with no tag, no typedef, or declarator get
- // '<unnamed-tag>@'.
- Out << "<unnamed-tag>@";
+ // When VC encounters an anonymous type with no tag and no typedef,
+ // it literally emits '<unnamed-tag>@'.
+ Out << "<unnamed-tag>@";
break;
}