summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/examples/LLJITExamples/CMakeLists.txt2
-rw-r--r--llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/CMakeLists.txt11
-rw-r--r--llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/LLJITWithCustomObjectLinkingLayer.cpp (renamed from llvm/examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp)8
-rw-r--r--llvm/examples/LLJITExamples/LLJITWithJITLink/CMakeLists.txt11
4 files changed, 15 insertions, 17 deletions
diff --git a/llvm/examples/LLJITExamples/CMakeLists.txt b/llvm/examples/LLJITExamples/CMakeLists.txt
index 2ae0a5a22ba..3aaaa2c1951 100644
--- a/llvm/examples/LLJITExamples/CMakeLists.txt
+++ b/llvm/examples/LLJITExamples/CMakeLists.txt
@@ -1,3 +1,3 @@
add_subdirectory(LLJITDumpObjects)
add_subdirectory(LLJITWithObjectCache)
-add_subdirectory(LLJITWithJITLink)
+add_subdirectory(LLJITWithCustomObjectLinkingLayer)
diff --git a/llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/CMakeLists.txt b/llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/CMakeLists.txt
new file mode 100644
index 00000000000..2277a8e51ec
--- /dev/null
+++ b/llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/CMakeLists.txt
@@ -0,0 +1,11 @@
+set(LLVM_LINK_COMPONENTS
+ Core
+ IRReader
+ OrcJIT
+ Support
+ nativecodegen
+ )
+
+add_llvm_example(LLJITWithCustomObjectLinkingLayer
+ LLJITWithCustomObjectLinkingLayer.cpp
+ )
diff --git a/llvm/examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp b/llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/LLJITWithCustomObjectLinkingLayer.cpp
index ff8ccfa983c..04607d743ad 100644
--- a/llvm/examples/LLJITExamples/LLJITWithJITLink/LLJITWithJITLink.cpp
+++ b/llvm/examples/LLJITExamples/LLJITWithCustomObjectLinkingLayer/LLJITWithCustomObjectLinkingLayer.cpp
@@ -1,4 +1,4 @@
-//===-- LLJITWithJITLink.cpp - Configure LLJIT to use ObjectLinkingLayer --===//
+//===--------------- LLJITWithCustomObjectLinkingLayer.cpp ----------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -6,10 +6,8 @@
//
//===----------------------------------------------------------------------===//
//
-// This file shows how to switch LLJIT to use ObjectLinkingLayer (which is
-// backed by JITLink) rather than RTDyldObjectLinkingLayer (which is backed by
-// RuntimeDyld). Using JITLink as the underlying allocator enables use of
-// small code model in JIT'd code.
+// This file shows how to switch LLJIT to use a custom object linking layer (we
+// use ObjectLinkingLayer, which is backed by JITLink, as an example).
//
//===----------------------------------------------------------------------===//
diff --git a/llvm/examples/LLJITExamples/LLJITWithJITLink/CMakeLists.txt b/llvm/examples/LLJITExamples/LLJITWithJITLink/CMakeLists.txt
deleted file mode 100644
index 5f9bf394a72..00000000000
--- a/llvm/examples/LLJITExamples/LLJITWithJITLink/CMakeLists.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-set(LLVM_LINK_COMPONENTS
- Core
- IRReader
- OrcJIT
- Support
- nativecodegen
- )
-
-add_llvm_example(LLJITWithJITLink
- LLJITWithJITLink.cpp
- )
OpenPOWER on IntegriCloud