[examples] Direct HowToUseJIT readers to HowToUseLLJIT instead.
authorLang Hames <lhames@gmail.com>
Fri, 23 Dec 2022 09:08:50 +0000 (01:08 -0800)
committerLang Hames <lhames@gmail.com>
Fri, 23 Dec 2022 09:10:27 +0000 (01:10 -0800)
HowToUseJIT describes the older APIs. We want to discourage their use in new
projects.

llvm/examples/HowToUseJIT/HowToUseJIT.cpp

index f7ec269..5acaf38 100644 (file)
@@ -6,6 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 //
+//  WARNING: This example demonstrates how to use LLVM's older ExecutionEngine
+//           JIT APIs. The newer LLJIT APIs should be preferred for new
+//           projects. See llvm/examples/HowToUseLLJIT.
+//
 //  This small program provides an example of how to quickly build a small
 //  module with two functions and execute it with the JIT.
 //