From b80c6300c56a13e4787e3ae10ced955585f05f16 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Sun, 4 Sep 2016 17:53:30 +0000 Subject: [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 --- test/ExecutionEngine/OrcLazy/module-flags.ll | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/ExecutionEngine/OrcLazy/module-flags.ll (limited to 'test/ExecutionEngine') 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} -- cgit v1.2.3