[llvm-dev] Issues to implement a backend

GE ZHIGUO via llvm-dev llvm-dev at lists.llvm.org
Mon May 13 04:54:12 PDT 2019


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.


More information about the llvm-dev mailing list