Hi, All I am trying to implement a llvm backend. But I encountered the following problem when running the backend: "Fatal error: error in backend: WinEH not implemented for this target" This error is triggered by function processFunctionBeforeFrameFinalized() defined in class TargetFrameLowering. Can anyone help? Thanks a lot! Zhiguo [cid:image001.jpg at 01D50970.C9344210] -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190513/6d866094/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 54526 bytes Desc: image001.jpg URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190513/6d866094/attachment-0001.jpg>
Hi Zhiguo, On Mon, 13 May 2019 at 02:47, GE ZHIGUO via llvm-dev <llvm-dev at lists.llvm.org> wrote:> “Fatal error: error in backend: WinEH not implemented for this target”This should only happen if you've deliberately opted into handling exceptions the Windows way, possibly by copy/pasting an existing implementation without realizing the implications? There's not really any reason for anything except Windows to do that, so look in your MCTargetDesc/XYZMCAsmInfo.cpp for where you set ExceptionsType and change it to DwarfCFI instead. Cheers. Tim.
Hi, Tim I have solved the problem. Thanks a lot for your help! Zhiguo -----Original Message----- From: Tim Northover [mailto:t.p.northover at gmail.com] Sent: 2019年5月13日 14:42 To: GE ZHIGUO <GE.ZHIGUO at huawei.com> Cc: llvm-dev at lists.llvm.org Subject: Re: [llvm-dev] Issues to implement a backend Hi Zhiguo, On Mon, 13 May 2019 at 02:47, GE ZHIGUO via llvm-dev <llvm-dev at lists.llvm.org> wrote:> “Fatal error: error in backend: WinEH not implemented for this target”This should only happen if you've deliberately opted into handling exceptions the Windows way, possibly by copy/pasting an existing implementation without realizing the implications? There's not really any reason for anything except Windows to do that, so look in your MCTargetDesc/XYZMCAsmInfo.cpp for where you set ExceptionsType and change it to DwarfCFI instead. Cheers. Tim.
Seemingly Similar Threads
- [LLVMdev] Enable debug for MSP430
- no-frame-pointer-elim & optimized
- no-frame-pointer-elim & optimized
- [PATCH] xl: Update memory info in xenstore when use ''xl mem-set''
- [LLVMdev] Question about '-fno-exceptions' option and 'ExceptionsType' on MCAsmInfo with ARM.