From 847307a35b33bf3b9c68510c71b41794de9f2cca Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sat, 7 Apr 2012 02:24:20 +0000 Subject: [PATCH] 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 --- docs/ReleaseNotes.html | 1 + lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index 72153a99738..0b4a51148f0 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -384,6 +384,7 @@ Release Notes.
  • 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.
  • +
  • DW2 Exception Handling is enabled on Cygwin and MinGW.
  • diff --git a/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp b/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp index 003a14ab215..afa545cbb31 100644 --- a/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp +++ b/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp @@ -155,4 +155,7 @@ X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) { AssemblerDialect = AsmWriterFlavor; TextAlignFillValue = 0x90; + + // Exceptions handling + ExceptionsType = ExceptionHandling::DwarfCFI; }