Skip to content

Commit

Permalink
Standardizing lli's extra module command line option
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193544 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Andrew Kaylor committed Oct 28, 2013
1 parent f39819d commit 61abf15
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion test/ExecutionEngine/MCJIT/cross-module-a.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %lli_mcjit -extra-modules=%p/cross-module-b.ir %s > /dev/null
; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir %s > /dev/null

declare i32 @FB()

Expand Down
2 changes: 1 addition & 1 deletion test/ExecutionEngine/MCJIT/cross-module-sm-pic-a.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %lli_mcjit -extra-modules=%p/cross-module-b.ir -relocation-model=pic -code-model=small %s > /dev/null
; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir -relocation-model=pic -code-model=small %s > /dev/null
; XFAIL: mips, i686, i386, aarch64, arm

declare i32 @FB()
Expand Down
2 changes: 1 addition & 1 deletion test/ExecutionEngine/MCJIT/multi-module-a.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %lli_mcjit -extra-modules=%p/multi-module-b.ir,%p/multi-module-c.ir %s > /dev/null
; RUN: %lli_mcjit -extra-module=%p/multi-module-b.ir -extra-module=%p/multi-module-c.ir %s > /dev/null

declare i32 @FB()

Expand Down
2 changes: 1 addition & 1 deletion test/ExecutionEngine/MCJIT/multi-module-eh-a.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %lli_mcjit -extra-modules=%p/multi-module-eh-b.ir %s
; RUN: %lli_mcjit -extra-module=%p/multi-module-eh-b.ir %s
; XFAIL: arm, cygwin, win32, mingw
declare i8* @__cxa_allocate_exception(i64)
declare void @__cxa_throw(i8*, i8*, i8*)
Expand Down
2 changes: 1 addition & 1 deletion test/ExecutionEngine/MCJIT/multi-module-sm-pic-a.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %lli_mcjit -extra-modules=%p/multi-module-b.ir,%p/multi-module-c.ir -relocation-model=pic -code-model=small %s > /dev/null
; RUN: %lli_mcjit -extra-module=%p/multi-module-b.ir -extra-module=%p/multi-module-c.ir -relocation-model=pic -code-model=small %s > /dev/null
; XFAIL: mips, i686, i386, aarch64, arm

declare i32 @FB()
Expand Down
2 changes: 1 addition & 1 deletion test/ExecutionEngine/MCJIT/remote/cross-module-a.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %lli_mcjit -extra-modules=%p/cross-module-b.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null
; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null

; This fails because __main is not resolved in remote mcjit.
; XFAIL: cygwin,mingw32
Expand Down
2 changes: 1 addition & 1 deletion test/ExecutionEngine/MCJIT/remote/cross-module-sm-pic-a.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %lli_mcjit -extra-modules=%p/cross-module-b.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null
; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null
; XFAIL: mips, i686, i386, aarch64, arm

declare i32 @FB()
Expand Down
2 changes: 1 addition & 1 deletion test/ExecutionEngine/MCJIT/remote/multi-module-a.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %lli_mcjit -extra-modules=%p/multi-module-b.ir,%p/multi-module-c.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null
; RUN: %lli_mcjit -extra-module=%p/multi-module-b.ir -extra-module=%p/multi-module-c.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null

; This fails because __main is not resolved in remote mcjit.
; XFAIL: cygwin,mingw32
Expand Down
2 changes: 1 addition & 1 deletion test/ExecutionEngine/MCJIT/remote/multi-module-sm-pic-a.ll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %lli_mcjit -extra-modules=%p/multi-module-b.ir,%p/multi-module-c.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null
; RUN: %lli_mcjit -extra-module=%p/multi-module-b.ir -extra-module=%p/multi-module-c.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null
; XFAIL: mips, i686, i386, aarch64, arm

declare i32 @FB()
Expand Down
3 changes: 1 addition & 2 deletions tools/lli/lli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ namespace {
cl::init("main"));

cl::list<std::string>
ExtraModules("extra-modules",
cl::CommaSeparated,
ExtraModules("extra-module",
cl::desc("Extra modules to be loaded"),
cl::value_desc("<input bitcode 2>,<input bitcode 3>,..."));

Expand Down

0 comments on commit 61abf15

Please sign in to comment.