Revert r215365 - Coverage mapping: emit mapping for cxx constructors that use microso...
authorAlex Lorenz <arphaman@gmail.com>
Mon, 11 Aug 2014 18:21:34 +0000 (18:21 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 11 Aug 2014 18:21:34 +0000 (18:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215371 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenPGO.cpp

index d7ceda4d532f353e012cd73a7f67f5954cc0bcd3..7fb64b85a05bc6df885a4ac4c68eff55df3f04e4 100644 (file)
@@ -847,13 +847,8 @@ void CodeGenPGO::checkGlobalDecl(GlobalDecl GD) {
   // a class. Every function is instrumented, but we only want to provide
   // coverage for one of them. Because of that we only emit the coverage mapping
   // for the base constructor/destructor.
-  // For Microsoft's C++ ABI Clang emits only the complete constructor,
-  // therefore we have to emit the coverage mapping for it instead of the base
-  // one.
-  const CXXCtorType AcceptedCtor =
-      CGM.getTarget().getCXXABI().isMicrosoft()? Ctor_Complete : Ctor_Base;
   if ((isa<CXXConstructorDecl>(GD.getDecl()) &&
-       GD.getCtorType() != AcceptedCtor) ||
+       GD.getCtorType() != Ctor_Base) ||
       (isa<CXXDestructorDecl>(GD.getDecl()) &&
        GD.getDtorType() != Dtor_Base)) {
     SkipCoverageMapping = true;