]> granicus.if.org Git - llvm/commit
[JITLink] Add support for passing arguments to jit-linked code.
authorLang Hames <lhames@gmail.com>
Wed, 24 Apr 2019 17:23:05 +0000 (17:23 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 24 Apr 2019 17:23:05 +0000 (17:23 +0000)
commita104dee58e136c7a90f2eb3ecaf25a7efd07bcfc
tree0f9c0f55d735b0c58611976b7ad69da5f6b1309f
parentf26b156fd2f58f49d3190a45c07e25c15b0bc0ae
[JITLink] Add support for passing arguments to jit-linked code.

The --args option can now be used to pass arguments to code linked with
llvm-jitlink. E.g.

$ llvm-jitlink file1.o file2.o --args a b c

is equivalent to:

$ ld -o program file1.o file2.o
$ ./program a b c

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359115 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-jitlink/llvm-jitlink.cpp