[llvm] r191856 - Pass the resolved lli-child-target executable name to execv, rather than

Richard Smith richard-llvm at metafoo.co.uk
Wed Oct 2 14:33:12 PDT 2013


Author: rsmith
Date: Wed Oct  2 16:33:12 2013
New Revision: 191856

URL: http://llvm.org/viewvc/llvm-project?rev=191856&view=rev
Log:
Pass the resolved lli-child-target executable name to execv, rather than
searching $PATH for it then blindly executing it from $PWD anyway.

Modified:
    llvm/trunk/tools/lli/lli.cpp

Modified: llvm/trunk/tools/lli/lli.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lli/lli.cpp?rev=191856&r1=191855&r2=191856&view=diff
==============================================================================
--- llvm/trunk/tools/lli/lli.cpp (original)
+++ llvm/trunk/tools/lli/lli.cpp Wed Oct  2 16:33:12 2013
@@ -536,7 +536,7 @@ int main(int argc, char **argv, char * c
           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.





More information about the llvm-commits mailing list