Target/X86/MCTargetDesc/X86MCAsmInfo.cpp: Enable DwarfCFI (aka DW2) on Cygming.

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
This commit is contained in:
NAKAMURA Takumi 2012-04-07 02:24:20 +00:00
parent 0fdfaafb70
commit 847307a35b
2 changed files with 4 additions and 0 deletions

View File

@ -384,6 +384,7 @@ Release Notes</a>.</h1>
<li>Call instructions use the new register mask operands for faster compile <li>Call instructions use the new register mask operands for faster compile
times and better support for different calling conventions. The old WINCALL times and better support for different calling conventions. The old WINCALL
instructions are no longer needed.</li> instructions are no longer needed.</li>
<li>DW2 Exception Handling is enabled on Cygwin and MinGW.</li>
</ul> </ul>
</div> </div>

View File

@ -155,4 +155,7 @@ X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) {
AssemblerDialect = AsmWriterFlavor; AssemblerDialect = AsmWriterFlavor;
TextAlignFillValue = 0x90; TextAlignFillValue = 0x90;
// Exceptions handling
ExceptionsType = ExceptionHandling::DwarfCFI;
} }