[llvm-bugs] [Bug 45171] throw of a C string is causing an error when targeting wasm32

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 16 09:41:24 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45171

Heejin Ahn <aheejin at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|REOPENED                    |RESOLVED

--- Comment #6 from Heejin Ahn <aheejin at gmail.com> ---
As you've already found out, typeinfos are defined in libc++abi by design,
which is the same for all C++ platforms that use libc++abi. The reason you
don't need to link libc++abi specifically in the command line when you compile
for your host system (x86, etc) is the shared libraries are present in the
system library directory and they are linked implicitly. But this is not true
for wasm.

The reason the LLVM EH doc does not mention this is, this is not LLVM EH
design, but C++ library specifics. LLVM EH IR is not designed to be only used
by C++. It is a middle level IR that can be used for many different languages.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200316/0f4d60eb/attachment.html>


More information about the llvm-bugs mailing list