Add makeArrayRef() overload for ArrayRef input (no-op/identity) NFC
[oota-llvm.git] / examples / ExceptionDemo / CMakeLists.txt
index 5324acd21eabd4a0668679db8d67399327beab0e..793cf291ca6f110eae23c396e24c2ee3cd050bcd 100644 (file)
@@ -1,15 +1,21 @@
 set(LLVM_LINK_COMPONENTS
   Core
   ExecutionEngine
+  MC
   MCJIT
+  RuntimeDyld
   Support
+  Target
   nativecodegen
   )
 
-set(LLVM_REQUIRES_EH 1)
+# Enable EH and RTTI for this demo
+if(NOT LLVM_ENABLE_EH)
+  message(FATAL_ERROR "ExceptionDemo must require EH.")
+endif()
 
 add_llvm_example(ExceptionDemo
   ExceptionDemo.cpp
   )
 
-set_target_properties(ExceptionDemo PROPERTIES ENABLE_EXPORTS 1)
+export_executable_symbols(ExceptionDemo)