lib/Driver/Tools.cpp:  Disable cxa_atexit by default also on Cygwin.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116161 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index a98609d..31f9c08 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -1276,6 +1276,7 @@
   // -fuse-cxa-atexit is default.
   if (KernelOrKext ||
     !Args.hasFlag(options::OPT_fuse_cxa_atexit, options::OPT_fno_use_cxa_atexit,
+                  getToolChain().getTriple().getOS() != llvm::Triple::Cygwin &&
                   getToolChain().getTriple().getOS() != llvm::Triple::MinGW32 &&
                   getToolChain().getTriple().getOS() != llvm::Triple::MinGW64))
     CmdArgs.push_back("-fno-use-cxa-atexit");