Building Examples from Trunk throws the following error referenceing eh_selector

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.

  • Marc

Yes. You are using the old version of exception handling. You should stop using that and use the new version instead.

-bw

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. :slight_smile:

-bw

I fixed the example. :slight_smile:

-bw

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

Yup! I fixed it already.

-bw

Hi Eli, Bill,

When changing to the new exception system I forgot to ifdef out the old declarations.
Regardless since the old decs are no longer supported, Bill did the right thing and
additionally removed the optional demo of the auto upgrade mechanism from the demo
itself.

Sorry for the hassle

Garrison