diff options
author | Lang Hames <lhames@gmail.com> | 2016-09-04 17:53:30 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2016-09-04 17:53:30 +0000 |
commit | b80c6300c56a13e4787e3ae10ced955585f05f16 (patch) | |
tree | 3e820e1bb1230e00b092881bbc79b6e35d4b22c1 /test/ExecutionEngine | |
parent | fa79defc962df5886c096b8d3224799746b5d6b5 (diff) |
[ORC] Clone module flags metadata into the globals module in the
CompileOnDemandLayer.
Also contains a tweak to the orc-lazy jit in LLI to enable the test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine')
-rw-r--r-- | test/ExecutionEngine/OrcLazy/module-flags.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ExecutionEngine/OrcLazy/module-flags.ll b/test/ExecutionEngine/OrcLazy/module-flags.ll new file mode 100644 index 00000000000..c1240a876cb --- /dev/null +++ b/test/ExecutionEngine/OrcLazy/module-flags.ll @@ -0,0 +1,13 @@ +; RUN: lli -jit-kind=orc-lazy -orc-lazy-debug=mods-to-stdout %s | FileCheck %s +; +; CHECK: module-flags.ll.globals +; CHECK-NOT: Module End +; CHECK: The Answer is {{.*}}42 + +define i32 @main() { + ret i32 0 +} + +!llvm.module.flags = !{!0} + +!0 = !{i32 1, !"The Answer is ", i32 42} |