1set(LLVM_LINK_COMPONENTS 2 Core 3 ExecutionEngine 4 MC 5 MCJIT 6 RuntimeDyld 7 Support 8 Target 9 nativecodegen 10 ) 11 12# Enable EH and RTTI for this demo 13if(NOT LLVM_ENABLE_EH) 14 message(FATAL_ERROR "ExceptionDemo must require EH.") 15endif() 16 17add_llvm_example(ExceptionDemo 18 ExceptionDemo.cpp 19 ) 20 21export_executable_symbols(ExceptionDemo) 22