[cfe-dev] Building Examples from Trunk throws the following error referenceing eh_selector

Eli Friedman eli.friedman at gmail.com
Fri Feb 3 16:33:43 PST 2012


On Fri, Feb 3, 2012 at 4:22 PM, Bill Wendling <bwendling at apple.com> wrote:
> On Feb 2, 2012, at 4:15 PM, Marc J. Driftmeyer wrote:
>
>> I started getting this yesterday:
>>
>>> /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:1970:44: error:
>>>       no member named 'eh_selector' in namespace 'llvm::Intrinsic'
>>>   getDeclaration(&module, llvm::Intrinsic::eh_selector);
>>>                           ~~~~~~~~~~~~~~~~~^
>>> /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/examples/ExceptionDemo/ExceptionDemo.cpp:1974:44: error:
>>>       no member named 'eh_exception' in namespace 'llvm::Intrinsic'
>>>   getDeclaration(&module, llvm::Intrinsic::eh_exception);
>>>                           ~~~~~~~~~~~~~~~~~^
>>> 2 errors generated.
>>> make[2]: *** [examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/ExceptionDemo.cpp.o]       Error 1
>>> make[1]: *** [examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/all] Error 2
>>
>> Just wondering if this is known or not.
>>
> Hi Marc,
>
> Yes, this is expected. You are using the old exception handling mechanism. It was deleted back in November, but these intrinsics were still around (but not doing anything). You should move to the new EH mechanism. :-)
>

Err, it might be expected that code which uses eh_exception might
fail, but it isn't expected that llvm/examples/ fails to build...

-Eli




More information about the cfe-dev mailing list