aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lli
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-10-02 21:33:12 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-10-02 21:33:12 +0000
commitd34a4d60f04f60352c1f388a129d8108584177d0 (patch)
tree2eeef8641cbed582644b7544f4cdd5dc06aa54b6 /tools/lli
parent55cfb52aa302613b7cbe6a748f75985980577427 (diff)
downloadexternal_llvm-d34a4d60f04f60352c1f388a129d8108584177d0.zip
external_llvm-d34a4d60f04f60352c1f388a129d8108584177d0.tar.gz
external_llvm-d34a4d60f04f60352c1f388a129d8108584177d0.tar.bz2
Pass the resolved lli-child-target executable name to execv, rather than
searching $PATH for it then blindly executing it from $PWD anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli')
-rw-r--r--tools/lli/lli.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index 05bf4ec..1cdd91b 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -536,7 +536,7 @@ int main(int argc, char **argv, char * const *envp) {
errs() << "Unable to find child target: '\''" << MCJITRemoteProcess << "\'\n";
return -1;
}
- Target.reset(RemoteTarget::createExternalRemoteTarget(MCJITRemoteProcess));
+ Target.reset(RemoteTarget::createExternalRemoteTarget(ChildEXE));
}
} else {
// No child process name provided, use simulated remote execution.