[cfe-dev] Building Examples from Trunk throws the following error referenceing eh_selector
bwendling at apple.com
Fri Feb 3 16:33:29 PST 2012
On Feb 3, 2012, at 4:22 PM, Bill Wendling 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: *** [examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/ExceptionDemo.cpp.o] Error 1
>>> make: *** [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. :-)
I fixed the example. :)
More information about the cfe-dev