[LLVMdev] llvm-c bindings and exceptions?

Chris Lattner clattner at apple.com
Sun Aug 3 11:12:58 PDT 2008


On Aug 3, 2008, at 7:54 AM, Mahadevan R wrote:

> Hi,
>
> Just wondering -- shouldn't all (C linkage) functions exposed by
> LLVM-C (and written in C++) be catching std::exception (or "...") to
> prevent exceptions being passed on to C callers?

LLVM doesn't use exceptions in anything that has C bindings, so the  
catch isn't needed.

> [OT: Does clang warn about throw statements from within "extern C"  
> functions?]

Not yet,

-Chris



More information about the llvm-dev mailing list