Target/X86/MCTargetDesc/X86MCAsmInfo.cpp: Enable DwarfCFI (aka DW2) on Cygming.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 7 Apr 2012 02:24:20 +0000 (02:24 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 7 Apr 2012 02:24:20 +0000 (02:24 +0000)
Cygwin-1.7 supports dw2. Some recent mingw distros support one, too.
I have confirmed test-suite/SingleSource/Benchmarks/Shootout-C++/except.cpp can pass on Cygwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154247 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ReleaseNotes.html
lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp

index 72153a9973882be687f5f8602d4bed877c394b6a..0b4a51148f0b748b0b1d5504f6b56405623e52f8 100644 (file)
@@ -384,6 +384,7 @@ Release Notes</a>.</h1>
   <li>Call instructions use the new register mask operands for faster compile
   times and better support for different calling conventions.  The old WINCALL
   instructions are no longer needed.</li>
+  <li>DW2 Exception Handling is enabled on Cygwin and MinGW.</li>
 </ul>
 
 </div>
index 003a14ab2152d5ece267b3ff9cc576d19d37a2fa..afa545cbb3140b45bafbfba4b4fc1e7cac94c175 100644 (file)
@@ -155,4 +155,7 @@ X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) {
   AssemblerDialect = AsmWriterFlavor;
 
   TextAlignFillValue = 0x90;
+
+  // Exceptions handling
+  ExceptionsType = ExceptionHandling::DwarfCFI;
 }